[1/6] rust: media: add the media module
Commit Message
As part of the initial rust v4l2 support, add the media module
to the kernel crate.
Signed-off-by: Daniel Almeida <daniel.almeida@collabora.com>
---
rust/kernel/lib.rs | 2 ++
rust/kernel/media/mod.rs | 5 +++++
rust/kernel/media/v4l2/mod.rs | 3 +++
3 files changed, 10 insertions(+)
create mode 100644 rust/kernel/media/mod.rs
create mode 100644 rust/kernel/media/v4l2/mod.rs
@@ -48,6 +48,8 @@ pub mod types;
#[doc(hidden)]
pub use bindings;
pub use macros;
+#[cfg(CONFIG_MEDIA_SUPPORT)]
+pub mod media;
#[cfg(CONFIG_ARM_AMBA)]
pub mod amba;
new file mode 100644
@@ -0,0 +1,5 @@
+// SPDX-License-Identifier: GPL-2.0
+
+//! Media subsystem
+
+pub mod v4l2;
new file mode 100644
@@ -0,0 +1,3 @@
+// SPDX-License-Identifier: GPL-2.0 OR MIT
+
+//! Abstractions for include/media/v4l2-*.h