diff options
author | Rahul Rameshbabu <sergeantsagara@protonmail.com> | 2025-07-06 04:00:32 +0000 |
---|---|---|
committer | Danilo Krummrich <dakr@kernel.org> | 2025-07-07 14:32:09 +0200 |
commit | 5cddd546df0fa21316735d1d60fe826886e0dc21 (patch) | |
tree | d2c044311b5a1cc1f0ca31c7c2a0622a25c8c937 /rust/kernel | |
parent | 6d16cd5769bbb5eb62974e8eddb97fca830b49fd (diff) |
rust: pci: fix documentation related to Device instances
Device instances in the pci crate represent a valid struct pci_dev, not a
struct device.
Fixes: 7b948a2af6b5 ("rust: pci: fix unrestricted &mut pci::Device")
Signed-off-by: Rahul Rameshbabu <sergeantsagara@protonmail.com>
Link: https://lore.kernel.org/r/20250706035944.18442-3-sergeantsagara@protonmail.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'rust/kernel')
-rw-r--r-- | rust/kernel/pci.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rust/kernel/pci.rs b/rust/kernel/pci.rs index 9afe2a8ed637..a1febfbfc7d7 100644 --- a/rust/kernel/pci.rs +++ b/rust/kernel/pci.rs @@ -250,7 +250,8 @@ pub trait Driver: Send { /// /// # Invariants /// -/// A [`Device`] instance represents a valid `struct device` created by the C portion of the kernel. +/// A [`Device`] instance represents a valid `struct pci_dev` created by the C portion of the +/// kernel. #[repr(transparent)] pub struct Device<Ctx: device::DeviceContext = device::Normal>( Opaque<bindings::pci_dev>, |