[PATCH v2] pwm: th1520: use vertical import style
Guru Das Srinagesh
linux at gurudas.dev
Tue Jul 21 00:49:27 PDT 2026
Convert `use` imports to vertical layout for better readability and
maintainability.
Signed-off-by: Guru Das Srinagesh <linux at 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/
---
Changes in v2:
- Link Mauve: Removed empty terminal comment from middle of imports
- Link to v1: https://patch.msgid.link/20260705-pwm-rust-vert-imp-v1-1-753dbbfc6061@gurudas.dev
To: Michal Wilczynski <m.wilczynski at samsung.com>
To: Drew Fustini <fustini at kernel.org>
To: Guo Ren <guoren at kernel.org>
To: Fu Wei <wefu at redhat.com>
To: Uwe Kleine-König <ukleinek at kernel.org>
To: Miguel Ojeda <ojeda at kernel.org>
To: Boqun Feng <boqun at kernel.org>
To: Gary Guo <gary at garyguo.net>
To: Björn Roy Baron <bjorn3_gh at protonmail.com>
To: Benno Lossin <lossin at kernel.org>
To: Andreas Hindborg <a.hindborg at kernel.org>
To: Alice Ryhl <aliceryhl at google.com>
To: Trevor Gross <tmgross at umich.edu>
To: Danilo Krummrich <dakr at kernel.org>
To: Daniel Almeida <daniel.almeida at collabora.com>
To: Tamir Duberstein <tamird at kernel.org>
To: Alexandre Courbot <acourbot at nvidia.com>
To: Onur Özkan <work at onurozkan.dev>
To: Nathan Chancellor <nathan at kernel.org>
To: Nick Desaulniers <nick.desaulniers+lkml at gmail.com>
To: Bill Wendling <morbo at google.com>
To: Justin Stitt <justinstitt at google.com>
Cc: linux-riscv at lists.infradead.org
Cc: linux-pwm at vger.kernel.org
Cc: linux-kernel at vger.kernel.org
Cc: rust-for-linux at vger.kernel.org
Cc: llvm at lists.linux.dev
---
drivers/pwm/pwm_th1520.rs | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/drivers/pwm/pwm_th1520.rs b/drivers/pwm/pwm_th1520.rs
index 3e3fa51ccef9..543bd8dea846 100644
--- a/drivers/pwm/pwm_th1520.rs
+++ b/drivers/pwm/pwm_th1520.rs
@@ -23,15 +23,21 @@
use core::ops::Deref;
use kernel::{
clk::Clk,
- device::{Bound, Core, Device},
+ device::{
+ Bound,
+ Core,
+ Device, //
+ },
devres,
io::{
mem::IoMem,
Io, //
},
- of, platform,
+ of,
+ platform,
prelude::*,
- pwm, time,
+ pwm,
+ time, //
};
const TH1520_MAX_PWM_NUM: u32 = 6;
---
base-commit: 1a4920940ebfd8d907858abd8f8dd09b13752946
change-id: 20260705-pwm-rust-vert-imp-59a3d18bd0cf
Best regards,
--
Guru Das Srinagesh <linux at gurudas.dev>
More information about the linux-riscv
mailing list