We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 450dfde commit 3005469Copy full SHA for 3005469
1 file changed
drivers/gpu/drm/asahi/driver.rs
@@ -29,7 +29,9 @@ pub(crate) struct AsahiData {
29
pub(crate) resources: regs::Resources,
30
}
31
32
-pub(crate) struct AsahiDriver(ARef<AsahiDevice>);
+pub(crate) struct AsahiDriver {
33
+ _dev: ARef<AsahiDevice>,
34
+}
35
36
/// Convenience type alias for the DRM device type for this driver.
37
pub(crate) type AsahiDevice = kernel::drm::device::Device<AsahiDriver>;
@@ -198,6 +200,6 @@ impl platform::Driver for AsahiDriver {
198
200
199
201
drm::drv::Registration::new_foreign_owned(drm.clone(), 0)?;
202
- Ok(KBox::new(Self(drm), GFP_KERNEL)?.into())
203
+ Ok(KBox::new(Self { _dev: drm }, GFP_KERNEL)?.into())
204
205
0 commit comments