aboutsummaryrefslogtreecommitdiffstats
path: root/samples/rust/rust_driver_platform.rs
diff options
context:
space:
mode:
authorDanilo Krummrich <[email protected]>2024-12-19 17:04:15 +0000
committerGreg Kroah-Hartman <[email protected]>2024-12-20 16:21:05 +0000
commit7a718a1f26d1697465f0f4e402a69e29d6c4dd33 (patch)
treec6dd21f602cecee841c94fe3144f044affaff5a8 /samples/rust/rust_driver_platform.rs
parentrust: of: add `of::DeviceId` abstraction (diff)
downloadkernel-7a718a1f26d1697465f0f4e402a69e29d6c4dd33.tar.gz
kernel-7a718a1f26d1697465f0f4e402a69e29d6c4dd33.zip
rust: driver: implement `Adapter`
In order to not duplicate code in bus specific implementations (e.g. platform), implement a generic `driver::Adapter` to represent the connection of matched drivers and devices. Bus specific `Adapter` implementations can simply implement this trait to inherit generic functionality, such as matching OF or ACPI device IDs and ID table entries. Suggested-by: Rob Herring (Arm) <[email protected]> Signed-off-by: Danilo Krummrich <[email protected]> Tested-by: Dirk Behme <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'samples/rust/rust_driver_platform.rs')
0 files changed, 0 insertions, 0 deletions