mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 18:43:33 +02:00
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>
This commit is contained in:
parent
7d3825bfb5
commit
7043698aee
|
|
@ -254,8 +254,12 @@ pub fn device(&self) -> &Device {
|
|||
/// # Examples
|
||||
///
|
||||
/// ```no_run
|
||||
/// # #![cfg(CONFIG_PCI)]
|
||||
/// # use kernel::{device::Core, devres::Devres, pci};
|
||||
/// #![cfg(CONFIG_PCI)]
|
||||
/// use kernel::{
|
||||
/// device::Core,
|
||||
/// devres::Devres,
|
||||
/// pci, //
|
||||
/// };
|
||||
///
|
||||
/// fn from_core(dev: &pci::Device<Core>, devres: Devres<pci::Bar<0x4>>) -> Result {
|
||||
/// let bar = devres.access(dev.as_ref())?;
|
||||
|
|
@ -358,7 +362,13 @@ fn register_foreign<P>(dev: &Device<Bound>, data: P) -> Result
|
|||
/// # Examples
|
||||
///
|
||||
/// ```no_run
|
||||
/// use kernel::{device::{Bound, Device}, devres};
|
||||
/// use kernel::{
|
||||
/// device::{
|
||||
/// Bound,
|
||||
/// Device, //
|
||||
/// },
|
||||
/// devres, //
|
||||
/// };
|
||||
///
|
||||
/// /// Registration of e.g. a class device, IRQ, etc.
|
||||
/// struct Registration;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user