mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user