mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:24:47 +01:00
rust: faux: 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-5-dakr@kernel.org Signed-off-by: Danilo Krummrich <dakr@kernel.org>
This commit is contained in:
parent
52563c665b
commit
d88f27d7f4
1 changed files with 11 additions and 2 deletions
|
|
@ -6,8 +6,17 @@
|
|||
//!
|
||||
//! C header: [`include/linux/device/faux.h`](srctree/include/linux/device/faux.h)
|
||||
|
||||
use crate::{bindings, device, error::code::*, prelude::*};
|
||||
use core::ptr::{addr_of_mut, null, null_mut, NonNull};
|
||||
use crate::{
|
||||
bindings,
|
||||
device,
|
||||
prelude::*, //
|
||||
};
|
||||
use core::ptr::{
|
||||
addr_of_mut,
|
||||
null,
|
||||
null_mut,
|
||||
NonNull, //
|
||||
};
|
||||
|
||||
/// The registration of a faux device.
|
||||
///
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue