* [PATCH] rust: rcpufreq_dt: use vertical import style
@ 2026-07-06 3:08 Guru Das Srinagesh
2026-07-06 4:23 ` Viresh Kumar
0 siblings, 1 reply; 2+ messages in thread
From: Guru Das Srinagesh @ 2026-07-06 3:08 UTC (permalink / raw)
To: Rafael J. Wysocki, Viresh Kumar, Miguel Ojeda, Boqun Feng,
Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg,
Alice Ryhl, Trevor Gross, Danilo Krummrich, Daniel Almeida,
Tamir Duberstein, Alexandre Courbot, Onur Özkan
Cc: linux-pm, linux-kernel, rust-for-linux, Guru Das Srinagesh
Convert `use` imports to vertical layout for better readability and
maintainability.
Signed-off-by: Guru Das Srinagesh <linux@gurudas.dev>
---
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/20260628-b4-rust-vertical-imports-v1-0-98bc71d4810b@gurudas.dev/
---
drivers/cpufreq/rcpufreq_dt.rs | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/drivers/cpufreq/rcpufreq_dt.rs b/drivers/cpufreq/rcpufreq_dt.rs
index 10106fa13095..5d27857261da 100644
--- a/drivers/cpufreq/rcpufreq_dt.rs
+++ b/drivers/cpufreq/rcpufreq_dt.rs
@@ -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,
--
Guru Das Srinagesh <linux@gurudas.dev>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] rust: rcpufreq_dt: use vertical import style
2026-07-06 3:08 [PATCH] rust: rcpufreq_dt: use vertical import style Guru Das Srinagesh
@ 2026-07-06 4:23 ` Viresh Kumar
0 siblings, 0 replies; 2+ messages in thread
From: Viresh Kumar @ 2026-07-06 4:23 UTC (permalink / raw)
To: Guru Das Srinagesh
Cc: Rafael J. Wysocki, Miguel Ojeda, Boqun Feng, Gary Guo,
Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl,
Trevor Gross, Danilo Krummrich, Daniel Almeida, Tamir Duberstein,
Alexandre Courbot, Onur Özkan, linux-pm, linux-kernel,
rust-for-linux
On 05-07-26, 20:08, Guru Das Srinagesh wrote:
> Convert `use` imports to vertical layout for better readability and
> maintainability.
>
> Signed-off-by: Guru Das Srinagesh <linux@gurudas.dev>
> ---
> 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/20260628-b4-rust-vertical-imports-v1-0-98bc71d4810b@gurudas.dev/
> ---
> drivers/cpufreq/rcpufreq_dt.rs | 13 ++++++++++---
> 1 file changed, 10 insertions(+), 3 deletions(-)
Applied. Thanks.
--
viresh
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-07-06 4:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-06 3:08 [PATCH] rust: rcpufreq_dt: use vertical import style Guru Das Srinagesh
2026-07-06 4:23 ` Viresh Kumar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox