diff options
author | Danilo Krummrich <dakr@kernel.org> | 2024-12-19 18:04:15 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-12-20 17:21:05 +0100 |
commit | 7a718a1f26d1697465f0f4e402a69e29d6c4dd33 (patch) | |
tree | c6dd21f602cecee841c94fe3144f044affaff5a8 /rust/helpers/platform.c | |
parent | bbe3b4d1580dac8ea0e1451e38d1be9590a89ddc (diff) | |
download | linux-stable-7a718a1f26d1697465f0f4e402a69e29d6c4dd33.tar.gz linux-stable-7a718a1f26d1697465f0f4e402a69e29d6c4dd33.tar.bz2 linux-stable-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) <robh@kernel.org>
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Tested-by: Dirk Behme <dirk.behme@de.bosch.com>
Link: https://lore.kernel.org/r/20241219170425.12036-14-dakr@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'rust/helpers/platform.c')
0 files changed, 0 insertions, 0 deletions