Commit fbb92b6a authored by Danilo Krummrich's avatar Danilo Krummrich
Browse files

rust: device: implement impl_device_context_into_aref!



Implement a macro to implement all From conversions of a certain device
to ARef<Device>.

This avoids unnecessary boiler plate code for every device
implementation.

Reviewed-by: default avatarBenno Lossin <benno.lossin@proton.me>
Link: https://lore.kernel.org/r/20250413173758.12068-3-dakr@kernel.org


[ Add missing `::` prefix in macros. - Danilo ]
Signed-off-by: default avatarDanilo Krummrich <dakr@kernel.org>
parent cb271c2e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment