Files
linux/rust/kernel
Danilo Krummrich a38dfd60fe rust: platform: impl TryFrom<&Device> for &platform::Device
Implement TryFrom<&device::Device> for &Device.

This allows us to get a &platform::Device from a generic &Device in a safe
way; the conversion fails if the device' bus type does not match with
the platform bus type.

Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Benno Lossin <benno.lossin@proton.me>
Link: https://lore.kernel.org/r/20250321214826.140946-4-dakr@kernel.org
[ Support device context types, use dev_is_platform() helper. - Danilo ]
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
2025-04-19 10:20:25 +02:00
..
2025-03-10 15:12:17 +01:00
2025-04-17 15:21:52 +02:00
2025-04-17 15:21:54 +02:00
2025-03-16 21:59:19 +01:00
2025-02-22 15:44:19 +01:00
2025-03-16 21:59:19 +01:00
2024-12-20 17:21:04 +01:00
2024-10-08 15:44:36 +02:00
2025-03-16 21:59:19 +01:00
2024-12-20 17:19:26 +01:00
2024-11-04 16:21:44 -05:00
2025-03-16 21:59:19 +01:00