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

"Alexandre Courbot" <[email protected]>
Newsgroups dev.linux.lists.nova-gpu,dev.linux.lists.driver-core,org.freedesktop.lists.dri-devel,org.kernel.vger.linux-kernel,org.kernel.vger.rust-for-linux
Message-ID <[email protected]>
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 <[email protected]>
> Signed-off-by: Danilo Krummrich <[email protected]>

Reviewed-by: Alexandre Courbot <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.