Re: [PATCH v2 5/9] rust: pci: preserve device context in AsRef
From: Benno Lossin
Date: Mon Apr 14 2025 - 06:33:31 EST
On Sun Apr 13, 2025 at 7:37 PM CEST, Danilo Krummrich wrote:
> 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>.
>
> Signed-off-by: Danilo Krummrich <dakr@xxxxxxxxxx>
Reviewed-by: Benno Lossin <benno.lossin@xxxxxxxxx>
---
Cheers,
Benno
> ---
> rust/kernel/pci.rs | 8 +++++---
> 1 file changed, 5 insertions(+), 3 deletions(-)