Skip to contentSkip to conversation

rust: rcpufreq_dt: use vertical import style

PATCH Applied Guru Das Srinagesh 2 participants 2 messages Jul 6

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rust: rcpufreq_dt: use vertical import style

Convert use imports to vertical layout for better readability and maintainability.

---
Came across a recent commit bc58905eb07 ("samples: rust_misc_device: use vertical import style") and found a few more locations that could benefit from this cleanup. No functional changes.

Separating out patches per-subsystem as per the review feedback in [0].

Tested via:

    $ make LLVM=1 rustfmtcheck || echo "fail"
    $

[0]: https://lore.kernel.org/lkml/[email protected]/

---
 drivers/cpufreq/rcpufreq_dt.rs | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)
drivers/cpufreq/rcpufreq_dt.rs +10 -3
index 10106fa13095..5d27857261da 100644
@@ -4,12 +4,19 @@
 
 use kernel::{
     clk::Clk,
-    cpu, cpufreq,
+    cpu,
+    cpufreq, //
     cpumask::CpumaskVar,
-    device::{Core, Device},
+    device::{
+        Core,
+        Device, //
+    },
     error::code::*,
     macros::vtable,
-    module_platform_driver, of, opp, platform,
+    module_platform_driver,
+    of,
+    opp,
+    platform, //
     prelude::*,
     str::CString,
     sync::Arc,

---
base-commit: da2e2fd83f1ef6160bfe2b863bbb904b44263dc4
change-id: 20260705-pm-rust-vert-imp-8b491b79b535

Best regards,

Signature · 1 line
Guru Das Srinagesh <[email protected]>
maintainer Applied
#1 lore raw
Quoted 13 lines · Guru Das Srinagesh

Convert use imports to vertical layout for better readability and maintainability.

---
Came across a recent commit bc58905eb07 ("samples: rust_misc_device: use vertical import style") and found a few more locations that could benefit from this cleanup. No functional changes.

Separating out patches per-subsystem as per the review feedback in [0].

Tested via:

Quoted 7 lines
    $ make LLVM=1 rustfmtcheck || echo "fail"
    $

[0]: https://lore.kernel.org/lkml/[email protected]/

---
 drivers/cpufreq/rcpufreq_dt.rs | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

Applied. Thanks.

Signature · 1 line
viresh