Re: [PATCH v2 4/9] rust: platform: preserve device context in AsRef
From: Benno Lossin
Date: Mon Apr 14 2025 - 06:33:09 EST
On Sun Apr 13, 2025 at 7:36 PM CEST, Danilo Krummrich wrote:
> Since device::Device has a generic over its context, preserve this
> device context in AsRef.
>
> For instance, when calling platform::Device<Core> the new AsRef
> implementation returns device::Device<Core>.
>
> Signed-off-by: Danilo Krummrich <dakr@xxxxxxxxxx>
Reviewed-by: Benno Lossin <benno.lossin@xxxxxxxxx>
---
Cheers,
Benno
> ---
> rust/kernel/platform.rs | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)