diff options
author | Igor Korotin <igor.korotin.linux@gmail.com> | 2025-06-20 16:24:25 +0100 |
---|---|---|
committer | Danilo Krummrich <dakr@kernel.org> | 2025-06-26 23:22:17 +0200 |
commit | a74931eb59cf6b914e1b9471d9abd4429176f6af (patch) | |
tree | 785de7ab6e42ea4cea021f5c12bd8237215b8e0c /rust/kernel/lib.rs | |
parent | 9da36b9faed26f634c9f04a0f2cf7625c08f5d65 (diff) |
rust: acpi: add `acpi::DeviceId` abstraction
`acpi::DeviceId` is an abstraction around `struct acpi_device_id`.
Enable drivers to build ACPI device ID tables, to be consumed by the
corresponding bus abstractions, such as platform or I2C.
Signed-off-by: Igor Korotin <igor.korotin.linux@gmail.com>
Acked-by: Rafael J. Wysocki <rafael@kernel.org>
Link: https://lore.kernel.org/r/20250620152425.285683-1-igor.korotin.linux@gmail.com
[ Always inline DeviceId::new() and use &'static CStr; slightly reword
commit message. - Danilo ]
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'rust/kernel/lib.rs')
-rw-r--r-- | rust/kernel/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rust/kernel/lib.rs b/rust/kernel/lib.rs index 6b4774b2b1c3..5bbf3627212f 100644 --- a/rust/kernel/lib.rs +++ b/rust/kernel/lib.rs @@ -51,6 +51,7 @@ extern crate self as kernel; pub use ffi; +pub mod acpi; pub mod alloc; #[cfg(CONFIG_AUXILIARY_BUS)] pub mod auxiliary; |