Files
linux/rust/kernel
Markus Probst e4addc7cc2 rust: Add trait to convert a device reference to a bus device reference
Implement the `AsBusDevice` trait for converting a `Device` reference to a
bus device reference for all bus devices.

The `AsBusDevice` trait allows abstractions to provide the bus device in
class device callbacks. It must not be used by drivers and is intended for
bus and class device abstractions only.

Signed-off-by: Markus Probst <markus.probst@posteo.de>
Link: https://patch.msgid.link/20251027200547.1038967-2-markus.probst@posteo.de
[ * Remove unused import.
  * Change visibility of AsBusDevice to public.
  * Fix build for USB.
  * Add impl for I2cClient.
  - Danilo ]
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
2025-11-18 11:00:51 +13:00
..
2025-11-05 00:05:38 +01:00
2025-11-13 20:17:24 +11:00
2025-11-04 13:25:29 +01:00
2025-07-23 02:05:58 +02:00
2025-10-17 13:02:22 +02:00
2025-07-23 02:05:58 +02:00
2025-08-13 17:40:28 +02:00
2025-07-21 01:16:35 +02:00
2025-09-06 13:27:20 +02:00
2025-11-13 20:17:24 +11:00
2025-07-21 01:16:35 +02:00
2025-08-21 16:58:07 +02:00
2025-09-22 23:55:41 +02:00
2025-09-15 09:38:35 +02:00
2024-11-04 16:21:44 -05:00