diff options
| author | Danilo Krummrich <[email protected]> | 2024-12-19 17:04:15 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2024-12-20 16:21:05 +0000 |
| commit | 7a718a1f26d1697465f0f4e402a69e29d6c4dd33 (patch) | |
| tree | c6dd21f602cecee841c94fe3144f044affaff5a8 /samples/rust/rust_driver_platform.rs | |
| parent | rust: of: add `of::DeviceId` abstraction (diff) | |
| download | kernel-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
