aboutsummaryrefslogtreecommitdiffstats
path: root/samples/rust/rust_driver_faux.rs
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <[email protected]>2025-02-10 12:30:25 +0000
committerGreg Kroah-Hartman <[email protected]>2025-02-13 15:58:51 +0000
commit35fa2d88ca9481e5caf533d58b99ca259c63b2fe (patch)
treeeec90f8ccb9a60ece0045967ddd8b26723c8d2f1 /samples/rust/rust_driver_faux.rs
parentLinux 6.14-rc2 (diff)
downloadkernel-35fa2d88ca9481e5caf533d58b99ca259c63b2fe.tar.gz
kernel-35fa2d88ca9481e5caf533d58b99ca259c63b2fe.zip
driver core: add a faux bus for use when a simple device/bus is needed
Many drivers abuse the platform driver/bus system as it provides a simple way to create and bind a device to a driver-specific set of probe/release functions. Instead of doing that, and wasting all of the memory associated with a platform device, here is a "faux" bus that can be used instead. Reviewed-by: Jonathan Cameron <[email protected]> Reviewed-by: Danilo Krummrich <[email protected]> Reviewed-by: Lyude Paul <[email protected]> Reviewed-by: Thomas Weißschuh <[email protected]> Reviewed-by: Zijun Hu <[email protected]> Link: https://lore.kernel.org/r/2025021026-atlantic-gibberish-3f0c@gregkh Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'samples/rust/rust_driver_faux.rs')
0 files changed, 0 insertions, 0 deletions