]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
rust: pci: fix incorrect platform reference in PCI driver probe doc comment
authorRahul Rameshbabu <sergeantsagara@protonmail.com>
Sun, 14 Sep 2025 03:18:34 +0000 (03:18 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 12 Oct 2025 11:01:01 +0000 (13:01 +0200)
commit 855318e7c0c4a3e3014c0469dd5bc93a1c0df30c upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
rust/kernel/pci.rs

index 8435f8132e38129ccc3495e7c4d3237fcaa97ad9..9c9f256c7f8f5da78cd9a0ced7d054f8f0efaef0 100644 (file)
@@ -238,8 +238,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>>>;
 }