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>
Loading
Please sign in to comment