diff options
author | Danilo Krummrich <dakr@kernel.org> | 2025-03-22 00:47:55 +0300 |
---|---|---|
committer | Danilo Krummrich <dakr@kernel.org> | 2025-04-19 11:20:25 +0300 |
commit | a38dfd60fe53a46a93517f02a061bb34c47946dc (patch) | |
tree | 1f51b84e91c35208b2573cebb8b38d12cdf73295 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | a095d0d1e4849ee25c28d43d713a8f433d7f1f27 (diff) | |
download | linux-a38dfd60fe53a46a93517f02a061bb34c47946dc.tar.xz |
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions