mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:04:41 +01:00
rust: platform: 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-2-dakr@kernel.org Signed-off-by: Danilo Krummrich <dakr@kernel.org>
This commit is contained in:
parent
6506b44e88
commit
da74aee2ad
2 changed files with 31 additions and 10 deletions
|
|
@ -66,13 +66,17 @@ use kernel::{
|
|||
acpi,
|
||||
device::{
|
||||
self,
|
||||
property::{FwNodeReferenceArgs, NArgs},
|
||||
property::{
|
||||
FwNodeReferenceArgs,
|
||||
NArgs, //
|
||||
},
|
||||
Core,
|
||||
},
|
||||
of, platform,
|
||||
of,
|
||||
platform,
|
||||
prelude::*,
|
||||
str::CString,
|
||||
sync::aref::ARef,
|
||||
sync::aref::ARef, //
|
||||
};
|
||||
|
||||
struct SampleDriver {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue