diff options
author | 2025-04-13 19:36:56 +0200 | |
---|---|---|
committer | 2025-04-17 15:21:11 +0200 | |
commit | cb271c2edfd0ab7204d5ef3c9d5ae9a0710f5bf2 (patch) | |
tree | 953fdf1e4af2226572ed8db14f3a471da3aadd82 /rust/helpers/pci.c | |
parent | Linux 6.15-rc1 (diff) | |
download | wireguard-linux-cb271c2edfd0ab7204d5ef3c9d5ae9a0710f5bf2.tar.xz wireguard-linux-cb271c2edfd0ab7204d5ef3c9d5ae9a0710f5bf2.zip |
rust: device: implement impl_device_context_deref!
The Deref hierarchy for device context generics is the same for every
(bus specific) device.
Implement those with a generic macro to avoid duplicated boiler plate
code and ensure the correct Deref hierarchy for every device
implementation.
Co-developed-by: Benno Lossin <benno.lossin@proton.me>
Signed-off-by: Benno Lossin <benno.lossin@proton.me>
Reviewed-by: Christian Schrefl <chrisi.schrefl@gmail.com>
Link: https://lore.kernel.org/r/20250413173758.12068-2-dakr@kernel.org
[ Add missing `::` prefix in macros. - Danilo ]
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'rust/helpers/pci.c')
0 files changed, 0 insertions, 0 deletions