mirror-linux/rust
Danilo Krummrich 683a63befc 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) <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-15-dakr@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-12-20 17:21:05 +01:00
..
bindings rust: platform: add basic platform device / driver abstractions 2024-12-20 17:21:05 +01:00
helpers rust: platform: add basic platform device / driver abstractions 2024-12-20 17:21:05 +01:00
kernel rust: platform: add basic platform device / driver abstractions 2024-12-20 17:21:05 +01:00
macros rust: module: add trait `ModuleMetadata` 2024-12-20 17:19:25 +01:00
uapi rust: map `__kernel_size_t` and friends also to usize/isize 2024-11-10 23:58:00 +01:00
.gitignore
Makefile rust: kbuild: set `bindgen`'s Rust target version 2024-12-10 01:06:10 +01:00
bindgen_parameters rust: map `__kernel_size_t` and friends also to usize/isize 2024-11-10 23:58:00 +01:00
build_error.rs
compiler_builtins.rs rust: add intrinsics to fix `-Os` builds 2024-08-10 00:05:10 +02:00
exports.c rust: exports: improve grammar in commentary 2024-10-21 17:35:33 +02:00
ffi.rs rust: use custom FFI integer types 2024-11-10 23:58:00 +01:00