rust/drm: Remove imports covered by prelude::*

This just removes any explicit imports of items in files that are already
being pulled in by `use prelude::*;`.

There should be no functional changes in this patch.

Signed-off-by: Lyude Paul <lyude@redhat.com>
Link: https://patch.msgid.link/20260122214316.3281257-2-lyude@redhat.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
This commit is contained in:
Lyude Paul 2026-01-22 16:43:03 -05:00 committed by Danilo Krummrich
parent b7a124928b
commit 6ad005ce69
4 changed files with 4 additions and 19 deletions

View File

@ -12,10 +12,7 @@
self,
driver::AllocImpl, //
},
error::{
from_err_ptr,
Result, //
},
error::from_err_ptr,
prelude::*,
sync::aref::{
ARef,

View File

@ -9,14 +9,10 @@
device,
devres,
drm,
error::{
to_result,
Result, //
},
error::to_result,
prelude::*,
sync::aref::ARef, //
};
use macros::vtable;
/// Driver use the GEM memory manager. This should be set for all modern drivers.
pub(crate) const FEAT_GEM: u32 = bindings::drm_driver_feature_DRIVER_GEM;

View File

@ -7,14 +7,10 @@
use crate::{
bindings,
drm,
error::Result,
prelude::*,
types::Opaque, //
};
use core::{
marker::PhantomData,
pin::Pin, //
};
use core::marker::PhantomData;
/// Trait that must be implemented by DRM drivers to represent a DRM File (a client instance).
pub trait DriverFile {

View File

@ -5,7 +5,6 @@
//! C header: [`include/drm/drm_gem.h`](srctree/include/drm/drm_gem.h)
use crate::{
alloc::flags::*,
bindings,
drm::{
self,
@ -14,10 +13,7 @@
AllocOps, //
},
},
error::{
to_result,
Result, //
},
error::to_result,
prelude::*,
sync::aref::{
ARef,