diff options
author | 2025-04-13 19:37:00 +0200 | |
---|---|---|
committer | 2025-04-17 15:21:47 +0200 | |
commit | 3edaefbf2b1beb9ae1cb2a842f455157b951e9f1 (patch) | |
tree | 712d537e3c2afe632dd43c30b4dfdf7454922050 /rust/helpers/pci.c | |
parent | rust: platform: preserve device context in AsRef (diff) | |
download | wireguard-linux-3edaefbf2b1beb9ae1cb2a842f455157b951e9f1.tar.xz wireguard-linux-3edaefbf2b1beb9ae1cb2a842f455157b951e9f1.zip |
rust: pci: preserve device context in AsRef
Since device::Device has a generic over its context, preserve this
device context in AsRef.
For instance, when calling pci::Device<Core> the new AsRef implementation
returns device::Device<Core>.
Reviewed-by: Benno Lossin <benno.lossin@proton.me>
Link: https://lore.kernel.org/r/20250413173758.12068-6-dakr@kernel.org
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'rust/helpers/pci.c')
0 files changed, 0 insertions, 0 deletions