Re: [PATCH v5 4/4] rust: clk: use 'kernel vertical style' for imports
"Alexandre Courbot" <[email protected]> Sun, 02 Aug 2026 14:36:45 +0900
| Newsgroups | org.kernel.vger.linux-pwm,org.freedesktop.lists.dri-devel,org.infradead.lists.linux-riscv,org.kernel.vger.linux-clk,org.kernel.vger.linux-kernel,org.kernel.vger.linux-pm,org.kernel.vger.rust-for-linux |
|---|---|
| Message-ID | <[email protected]> |
On Mon Jul 6, 2026 at 11:37 PM JST, Daniel Almeida wrote: > Convert all imports to use the new import style. This will make it easier > to land new changes in the future. > > No change of functionality implied. > > Link: https://docs.kernel.org/rust/coding-guidelines.html#imports > Signed-off-by: Daniel Almeida <[email protected]> Reviewed-by: Alexandre Courbot <[email protected]> Would ideally be the first patch of the series to avoid churn. One small comment below. <...> > @@ -193,9 +203,15 @@ impl<State: ClkState> From<Error<State>> for kernel:= :error::Error { > /// original [`Clk`], e.g.: > /// > /// ``` > - /// use kernel::clk::{Clk, Enabled, Unprepared}; > - /// use kernel::device::{Bound, Device}; > - /// use kernel::error::Result; > + /// use kernel::clk::{ > + /// Clk, > + /// Enabled, > + /// Unprepared, // Doctests aren't reformatted by `rustfmt` and don't need the trailing `//`.