rust: driver-core: use "kernel vertical" style for imports

Convert all imports to use "kernel vertical" style.

With this, subsequent patches neither introduce unrelated changes nor
leave an inconsistent import pattern.

While at it, drop unnecessary imports covered by prelude::*.

Link: https://docs.kernel.org/rust/coding-guidelines.html#imports
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://patch.msgid.link/20260105142123.95030-3-dakr@kernel.org
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
This commit is contained in:
Danilo Krummrich
2026-01-05 15:19:44 +01:00
parent da74aee2ad
commit 52563c665b
3 changed files with 38 additions and 13 deletions

View File

@@ -8,13 +8,26 @@
use crate::{
alloc::Flags,
bindings,
device::{Bound, Device},
error::{to_result, Error, Result},
ffi::c_void,
device::{
Bound,
Device, //
},
error::to_result,
prelude::*,
revocable::{Revocable, RevocableGuard},
sync::{aref::ARef, rcu, Completion},
types::{ForeignOwnable, Opaque, ScopeGuard},
revocable::{
Revocable,
RevocableGuard, //
},
sync::{
aref::ARef,
rcu,
Completion, //
},
types::{
ForeignOwnable,
Opaque,
ScopeGuard, //
},
};
use pin_init::Wrapper;