Re: [PATCH v5 14/19] rust: drm: return ParentDevice from Device AsRef

From: Alexandre Courbot

Date: Thu Jul 02 2026 - 02:39:39 EST


On Sun Jun 28, 2026 at 11:53 PM JST, Danilo Krummrich wrote:
> Change AsRef for drm::Device to return &T::ParentDevice<device::Normal>
> instead of &device::Device, and restrict it to the Normal context.
> Device<T, Registered> still gets this through Deref coercion.
>
> This provides access to the typed parent bus device rather than the raw
> base device.
>
> Reviewed-by: Lyude Paul <lyude@xxxxxxxxxx>
> Signed-off-by: Danilo Krummrich <dakr@xxxxxxxxxx>

Reviewed-by: Alexandre Courbot <acourbot@xxxxxxxxxx>