mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-22 02:17:36 -04:00
samples: rust_misc_device: 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-2-64dc48fc1345@linux.dev Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
1dbd8c44fc
commit
bc58905eb0
@@ -97,14 +97,36 @@
|
||||
|
||||
use kernel::{
|
||||
device::Device,
|
||||
fs::{File, Kiocb},
|
||||
ioctl::{_IO, _IOC_SIZE, _IOR, _IOW},
|
||||
iov::{IovIterDest, IovIterSource},
|
||||
miscdevice::{MiscDevice, MiscDeviceOptions, MiscDeviceRegistration},
|
||||
fs::{
|
||||
File,
|
||||
Kiocb, //
|
||||
},
|
||||
ioctl::{
|
||||
_IO,
|
||||
_IOC_SIZE,
|
||||
_IOR,
|
||||
_IOW, //
|
||||
},
|
||||
iov::{
|
||||
IovIterDest,
|
||||
IovIterSource, //
|
||||
},
|
||||
miscdevice::{
|
||||
MiscDevice,
|
||||
MiscDeviceOptions,
|
||||
MiscDeviceRegistration, //
|
||||
},
|
||||
new_mutex,
|
||||
prelude::*,
|
||||
sync::{aref::ARef, Mutex},
|
||||
uaccess::{UserSlice, UserSliceReader, UserSliceWriter},
|
||||
sync::{
|
||||
aref::ARef,
|
||||
Mutex, //
|
||||
},
|
||||
uaccess::{
|
||||
UserSlice,
|
||||
UserSliceReader,
|
||||
UserSliceWriter, //
|
||||
},
|
||||
};
|
||||
|
||||
const RUST_MISC_DEV_HELLO: u32 = _IO('|' as u32, 0x80);
|
||||
|
||||
Reference in New Issue
Block a user