Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

rust: devres: style for imports

Convert all imports in the devres to use "kernel vertical" style.

Cc: Gary Guo <gary@garyguo.net>
Cc: Miguel Ojeda <ojeda@kernel.org>
Reviewed-by: Gary Guo <gary@garyguo.net>
Signed-off-by: Zhi Wang <zhiw@nvidia.com>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Link: https://patch.msgid.link/20260121202212.4438-2-zhiw@nvidia.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>

authored by

Zhi Wang and committed by
Danilo Krummrich
7043698a 7d3825bf

+13 -3
+13 -3
rust/kernel/devres.rs
··· 254 254 /// # Examples 255 255 /// 256 256 /// ```no_run 257 - /// # #![cfg(CONFIG_PCI)] 258 - /// # use kernel::{device::Core, devres::Devres, pci}; 257 + /// #![cfg(CONFIG_PCI)] 258 + /// use kernel::{ 259 + /// device::Core, 260 + /// devres::Devres, 261 + /// pci, // 262 + /// }; 259 263 /// 260 264 /// fn from_core(dev: &pci::Device<Core>, devres: Devres<pci::Bar<0x4>>) -> Result { 261 265 /// let bar = devres.access(dev.as_ref())?; ··· 362 358 /// # Examples 363 359 /// 364 360 /// ```no_run 365 - /// use kernel::{device::{Bound, Device}, devres}; 361 + /// use kernel::{ 362 + /// device::{ 363 + /// Bound, 364 + /// Device, // 365 + /// }, 366 + /// devres, // 367 + /// }; 366 368 /// 367 369 /// /// Registration of e.g. a class device, IRQ, etc. 368 370 /// struct Registration;