summaryrefslogtreecommitdiff
path: root/rust/bindings/bindings_helper.h
diff options
context:
space:
mode:
authorDanilo Krummrich <dakr@kernel.org>2024-10-15 17:18:37 +0200
committerDanilo Krummrich <dakr@kernel.org>2024-10-22 22:55:10 +0200
commit88ced317fb09b826b85a0bccb13ec7e0014cf207 (patch)
treed821af9c0f55c877063a76743c377e4a098a2608 /rust/bindings/bindings_helper.h
parente1290a86d3003fc9c0a5555cb4887c7297413fb2 (diff)
rust: drm: add device abstraction
Implement the abstraction for a `struct drm_device`. A `drm::device::Device` creates a static const `struct drm_driver` filled with the data from the `drm::drv::Driver` trait implementation of the actual driver creating the `drm::device::Device`. Co-developed-by: Asahi Lina <lina@asahilina.net> Signed-off-by: Asahi Lina <lina@asahilina.net> Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'rust/bindings/bindings_helper.h')
-rw-r--r--rust/bindings/bindings_helper.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/rust/bindings/bindings_helper.h b/rust/bindings/bindings_helper.h
index fa6b37a146f3..f45e6f7ccf8a 100644
--- a/rust/bindings/bindings_helper.h
+++ b/rust/bindings/bindings_helper.h
@@ -6,6 +6,7 @@
* Sorted alphabetically.
*/
+#include <drm/drm_device.h>
#include <drm/drm_drv.h>
#include <drm/drm_ioctl.h>
#include <kunit/test.h>