Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Miguel Ojeda and committed by
Uwe Kleine-König
51b4c0f9 a69a54f8

+1 -1
+1 -1
rust/kernel/pwm.rs
··· 660 660 /// A resource guard that ensures `pwmchip_remove` is called on drop. 661 661 /// 662 662 /// 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 664 664 /// to the lifetime of the underlying device. 665 665 pub struct Registration<T: PwmOps> { 666 666 chip: ARef<Chip<T>>,