diff options
| author | Matthew Maurer <mmaurer@google.com> | 2025-12-26 20:17:07 +0000 |
|---|---|---|
| committer | Danilo Krummrich <dakr@kernel.org> | 2025-12-28 12:43:56 +0100 |
| commit | 057d44b057755f31a38a3cb040960e8727b93610 (patch) | |
| tree | affb8e4337112e3160accc29e1aba3c0799fb894 /rust/kernel/lib.rs | |
| parent | 43e3518582cfc0fc1bb536b62d7f8366ee069ce9 (diff) | |
| download | linux-next-057d44b057755f31a38a3cb040960e8727b93610.tar.gz linux-next-057d44b057755f31a38a3cb040960e8727b93610.zip | |
rust: Add soc_device support
Allow SoC drivers in Rust to present metadata about their devices to
userspace through /sys/devices/socX and other drivers to identify their
properties through `soc_device_match`.
Signed-off-by: Matthew Maurer <mmaurer@google.com>
Link: https://patch.msgid.link/20251226-soc-bindings-v4-1-2c2fac08f820@google.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'rust/kernel/lib.rs')
| -rw-r--r-- | rust/kernel/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rust/kernel/lib.rs b/rust/kernel/lib.rs index f812cf120042..6d637e2fed1b 100644 --- a/rust/kernel/lib.rs +++ b/rust/kernel/lib.rs @@ -138,6 +138,8 @@ pub mod security; pub mod seq_file; pub mod sizes; pub mod slice; +#[cfg(CONFIG_SOC_BUS)] +pub mod soc; mod static_assert; #[doc(hidden)] pub mod std_vendor; |
