]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
rust: pwm: Fix broken intra-doc link
authorMiguel Ojeda <ojeda@kernel.org>
Wed, 29 Oct 2025 18:19:40 +0000 (19:19 +0100)
committerUwe Kleine-König <ukleinek@kernel.org>
Thu, 13 Nov 2025 09:20:17 +0000 (10:20 +0100)
`rustdoc` reports a broken intra-doc link:

    error: unresolved link to `Devres::register`
       --> rust/kernel/pwm.rs:722:11
        |
    722 | /// via [`Devres::register`]. This ties the lifetime of the PWM chip registration
        |           ^^^^^^^^^^^^^^^^ no item named `Devres` in scope
        |
        = note: `-D rustdoc::broken-intra-doc-links` implied by `-D warnings`
        = help: to override `-D warnings` add `#[allow(rustdoc::broken_intra_doc_links)]`

Thus fix it.

Fixes: d8046cd50879 ("rust: pwm: Add complete abstraction layer")
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Link: https://patch.msgid.link/20251029181940.780629-1-ojeda@kernel.org
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
rust/kernel/pwm.rs

index b19661b83b0f3e11eef3e1f6e6e1b356c8ae02a1..e6d1278d83169336bf86dd662f049c353928888b 100644 (file)
@@ -660,7 +660,7 @@ unsafe impl<T: PwmOps + Sync> Sync for Chip<T> {}
 /// A resource guard that ensures `pwmchip_remove` is called on drop.
 ///
 /// This struct is intended to be managed by the `devres` framework by transferring its ownership
-/// via [`Devres::register`]. This ties the lifetime of the PWM chip registration
+/// via [`devres::register`]. This ties the lifetime of the PWM chip registration
 /// to the lifetime of the underlying device.
 pub struct Registration<T: PwmOps> {
     chip: ARef<Chip<T>>,