Skip to content

Commit 51b4c0f

Browse files
ojedaUwe Kleine-König
authored andcommitted
rust: pwm: Fix broken intra-doc link
`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: d8046cd ("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>
1 parent a69a54f commit 51b4c0f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rust/kernel/pwm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ unsafe impl<T: PwmOps + Sync> Sync for Chip<T> {}
660660
/// A resource guard that ensures `pwmchip_remove` is called on drop.
661661
///
662662
/// This struct is intended to be managed by the `devres` framework by transferring its ownership
663-
/// via [`Devres::register`]. This ties the lifetime of the PWM chip registration
663+
/// via [`devres::register`]. This ties the lifetime of the PWM chip registration
664664
/// to the lifetime of the underlying device.
665665
pub struct Registration<T: PwmOps> {
666666
chip: ARef<Chip<T>>,

0 commit comments

Comments
 (0)