mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-25 12:09:17 -04:00
rust: miscdevice: use vertical import style
Convert `use` imports to vertical layout for better readability and maintainability. Signed-off-by: Alvin Sun <alvin.sun@linux.dev> Reviewed-by: Onur Özkan <work@onurozkan.dev> Link: https://patch.msgid.link/20260520-miscdev-use-format-v2-1-64dc48fc1345@linux.dev Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
91f818b184
commit
1dbd8c44fc
@@ -11,16 +11,38 @@
|
||||
use crate::{
|
||||
bindings,
|
||||
device::Device,
|
||||
error::{to_result, Error, Result, VTABLE_DEFAULT_ERROR},
|
||||
ffi::{c_int, c_long, c_uint, c_ulong},
|
||||
fs::{File, Kiocb},
|
||||
iov::{IovIterDest, IovIterSource},
|
||||
error::{
|
||||
to_result,
|
||||
Error,
|
||||
Result,
|
||||
VTABLE_DEFAULT_ERROR, //
|
||||
},
|
||||
ffi::{
|
||||
c_int,
|
||||
c_long,
|
||||
c_uint,
|
||||
c_ulong, //
|
||||
},
|
||||
fs::{
|
||||
File,
|
||||
Kiocb, //
|
||||
},
|
||||
iov::{
|
||||
IovIterDest,
|
||||
IovIterSource, //
|
||||
},
|
||||
mm::virt::VmaNew,
|
||||
prelude::*,
|
||||
seq_file::SeqFile,
|
||||
types::{ForeignOwnable, Opaque},
|
||||
types::{
|
||||
ForeignOwnable,
|
||||
Opaque, //
|
||||
},
|
||||
};
|
||||
use core::{
|
||||
marker::PhantomData,
|
||||
pin::Pin, //
|
||||
};
|
||||
use core::{marker::PhantomData, pin::Pin};
|
||||
|
||||
/// Options for creating a misc device.
|
||||
#[derive(Copy, Clone)]
|
||||
|
||||
Reference in New Issue
Block a user