Re: [PATCH v5 04/19] rust: drm: Add Driver::ParentDevice associated type
"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: > Add a ParentDevice associated type to the Driver trait, allowing each > DRM driver to declare its parent bus device type (e.g. > auxiliary::Device, platform::Device). > > Change UnregisteredDevice::new() to take &T::ParentDevice<Bound>, > ensuring at the type level that the DRM device's parent matches the > declared bus device type. > > Reviewed-by: Lyude Paul <[email protected]> > Signed-off-by: Danilo Krummrich <[email protected]> Reviewed-by: Alexandre Courbot <[email protected]>