diff options
| author | Danilo Krummrich <[email protected]> | 2024-12-19 17:04:16 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2024-12-20 16:21:05 +0000 |
| commit | 683a63befc7385bf7f19ba30fc0b4b14961114c5 (patch) | |
| tree | d5ab2f4e95a1416b160309a2d1a5b0e4b931f5e3 /samples/rust/rust_driver_platform.rs | |
| parent | rust: driver: implement `Adapter` (diff) | |
| download | kernel-683a63befc7385bf7f19ba30fc0b4b14961114c5.tar.gz kernel-683a63befc7385bf7f19ba30fc0b4b14961114c5.zip | |
rust: platform: add basic platform device / driver abstractions
Implement the basic platform bus abstractions required to write a basic
platform driver. This includes the following data structures:
The `platform::Driver` trait represents the interface to the driver and
provides `platform::Driver::probe` for the driver to implement.
The `platform::Device` abstraction represents a `struct platform_device`.
In order to provide the platform bus specific parts to a generic
`driver::Registration` the `driver::RegistrationOps` trait is implemented
by `platform::Adapter`.
Reviewed-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
