]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
rust: io: fix broken intra-doc links to `platform::Device`
authorMiguel Ojeda <ojeda@kernel.org>
Tue, 22 Jul 2025 08:55:00 +0000 (10:55 +0200)
committerDanilo Krummrich <dakr@kernel.org>
Tue, 22 Jul 2025 09:08:59 +0000 (11:08 +0200)
`platform` is not accessible from here.

Thus fix the intra-doc links by qualifying the paths a bit more.

Fixes: 1d0d4b28513b ("rust: io: mem: add a generic iomem abstraction")
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Link: https://lore.kernel.org/r/20250722085500.1360401-2-ojeda@kernel.org
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
rust/kernel/io/mem.rs

index cc9feb2897d8687f2179daf2e9733763cc362b83..6f99510bfc3a63dd72c1d47dc661dcd48fa7f54e 100644 (file)
@@ -40,8 +40,8 @@ impl<'a> IoRequest<'a> {
     ///
     /// # Examples
     ///
-    /// The following example uses a [`platform::Device`] for illustration
-    /// purposes.
+    /// The following example uses a [`kernel::platform::Device`] for
+    /// illustration purposes.
     ///
     /// ```no_run
     /// use kernel::{bindings, c_str, platform, of, device::Core};
@@ -98,8 +98,8 @@ impl<'a> IoRequest<'a> {
     ///
     /// # Examples
     ///
-    /// The following example uses a [`platform::Device`] for illustration
-    /// purposes.
+    /// The following example uses a [`kernel::platform::Device`] for
+    /// illustration purposes.
     ///
     /// ```no_run
     /// use kernel::{bindings, c_str, platform, of, device::Core};