rust: pci: fix documentation related to Device instances
PATCH v2 1/1 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 <[email protected]>
---
Notes:
Changes:
v1->v2:
* Added Fixes: git trailer
* Fixed warnings from ./scripts/checkpatch.pl
rust/kernel/pci.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
rust/kernel/pci.rs +2 -1
@@ -254,7 +254,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>,
base-commit: 2009a2d5696944d85c34d75e691a6f3884e787c0
Signature · 1 line
2.47.2
Danilo Krummrich
maintainerQuoted 5 lines · Rahul Rameshbabu
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 <[email protected]>
Applied to driver-core-testing, thanks!