summaryrefslogtreecommitdiff
path: root/rust/kernel/drm/mod.rs
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/kernel/drm/mod.rs
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/kernel/drm/mod.rs')
-rw-r--r--rust/kernel/drm/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/rust/kernel/drm/mod.rs b/rust/kernel/drm/mod.rs
index d987c56b3cec..69376b3c6db9 100644
--- a/rust/kernel/drm/mod.rs
+++ b/rust/kernel/drm/mod.rs
@@ -2,5 +2,6 @@
//! DRM subsystem abstractions.
+pub mod device;
pub mod drv;
pub mod ioctl;