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(-)