diff options
| author | Danilo Krummrich <[email protected]> | 2025-03-21 21:47:55 +0000 |
|---|---|---|
| committer | Danilo Krummrich <[email protected]> | 2025-04-19 08:20:25 +0000 |
| commit | a38dfd60fe53a46a93517f02a061bb34c47946dc (patch) | |
| tree | 1f51b84e91c35208b2573cebb8b38d12cdf73295 /rust/helpers/helpers.c | |
| parent | rust: pci: impl TryFrom<&Device> for &pci::Device (diff) | |
| download | kernel-a38dfd60fe53a46a93517f02a061bb34c47946dc.tar.gz kernel-a38dfd60fe53a46a93517f02a061bb34c47946dc.zip | |
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 <[email protected]>
Reviewed-by: Benno Lossin <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[ Support device context types, use dev_is_platform() helper. - Danilo ]
Signed-off-by: Danilo Krummrich <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions
