mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-28 12:53:14 +01: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 <[email protected]> Reviewed-by: Onur Özkan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
1 parent
1dbd8c44fc
commit
bc58905eb0
1 file changed
+28
-6
@@ -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