diff options
| author | Igor Korotin <[email protected]> | 2025-06-20 15:39:13 +0000 |
|---|---|---|
| committer | Danilo Krummrich <[email protected]> | 2025-06-26 21:26:10 +0000 |
| commit | 7a5cb145a9ce844be41ca5ed26e7d8d7c41dec7d (patch) | |
| tree | 25fb21325972c8def5961b5909dfe287921083de /samples/rust/rust_driver_platform.rs | |
| parent | rust: driver: Consolidate `Adapter::of_id_info` methods using `#[cfg]` (diff) | |
| download | kernel-7a5cb145a9ce844be41ca5ed26e7d8d7c41dec7d.tar.gz kernel-7a5cb145a9ce844be41ca5ed26e7d8d7c41dec7d.zip | |
rust: driver: Add ACPI id table support to Adapter trait
Extend the `Adapter` trait to support ACPI device identification.
This mirrors the existing Open Firmware (OF) support (`of_id_table`) and
enables Rust drivers to match and retrieve ACPI-specific device data
when `CONFIG_ACPI` is enabled.
To avoid breaking compilation, a stub implementation of `acpi_id_table()`
is added to the Platform adapter; the full implementation will be provided
in a subsequent patch.
Signed-off-by: Igor Korotin <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[ Fix clippy warning if #[cfg(not(CONFIG_OF))]; fix checkpatch.pl line
length warnings. - Danilo ]
Signed-off-by: Danilo Krummrich <[email protected]>
Diffstat (limited to 'samples/rust/rust_driver_platform.rs')
0 files changed, 0 insertions, 0 deletions
