summaryrefslogtreecommitdiff
path: root/rust/kernel
diff options
context:
space:
mode:
authorRahul Rameshbabu <sergeantsagara@protonmail.com>2025-09-14 03:18:34 +0000
committerDanilo Krummrich <dakr@kernel.org>2025-09-17 12:51:13 +0200
commit855318e7c0c4a3e3014c0469dd5bc93a1c0df30c (patch)
tree288d9833ab3ab7b757ba9a3d0e3a474e2313efcd /rust/kernel
parenta404d099554d17206d1f283c9a91f0616324f691 (diff)
rust: pci: fix incorrect platform reference in PCI driver probe doc comment
Substitute 'platform' with 'pci'. Fixes: 1bd8b6b2c5d3 ("rust: pci: add basic PCI device / driver abstractions") Cc: stable@kernel.org Signed-off-by: Rahul Rameshbabu <sergeantsagara@protonmail.com> Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'rust/kernel')
-rw-r--r--rust/kernel/pci.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/kernel/pci.rs b/rust/kernel/pci.rs
index b80e13216960..7fcc5f6022c1 100644
--- a/rust/kernel/pci.rs
+++ b/rust/kernel/pci.rs
@@ -270,8 +270,8 @@ pub trait Driver: Send {
/// PCI driver probe.
///
- /// Called when a new platform device is added or discovered.
- /// Implementers should attempt to initialize the device here.
+ /// Called when a new pci device is added or discovered. Implementers should
+ /// attempt to initialize the device here.
fn probe(dev: &Device<device::Core>, id_info: &Self::IdInfo) -> Result<Pin<KBox<Self>>>;
/// PCI driver unbind.