summaryrefslogtreecommitdiff
path: root/rust/kernel/pwm.rs
diff options
context:
space:
mode:
authorMiguel Ojeda <ojeda@kernel.org>2025-10-29 19:19:40 +0100
committerUwe Kleine-König <ukleinek@kernel.org>2025-11-13 10:20:17 +0100
commit51b4c0f9749d96d56887896383141e97916ac91b (patch)
treec253d717f28a517faca8e1cc037949ac78610da7 /rust/kernel/pwm.rs
parenta69a54f8dffb105b2df2e606b4c9f61127d006ac (diff)
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: 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>
Diffstat (limited to 'rust/kernel/pwm.rs')
-rw-r--r--rust/kernel/pwm.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/kernel/pwm.rs b/rust/kernel/pwm.rs
index b19661b83b0f..e6d1278d8316 100644
--- a/rust/kernel/pwm.rs
+++ b/rust/kernel/pwm.rs
@@ -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>>,