rust-for-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] rust: net: phy: fix example's references to `C{22,45}`
@ 2025-11-10 12:22 Miguel Ojeda
  2025-11-10 12:22 ` [PATCH 2/3] rust: net: phy: make example buildable Miguel Ojeda
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Miguel Ojeda @ 2025-11-10 12:22 UTC (permalink / raw)
  To: FUJITA Tomonori, Miguel Ojeda, Alex Gaynor
  Cc: Trevor Gross, netdev, rust-for-linux, Boqun Feng, Gary Guo,
	Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl,
	Danilo Krummrich, linux-kernel, patches

The example refers to `phy::C{22,45}`, but there are no such items --
they are within `reg`.

Thus fix it.

Fixes: 5114e05a3cfa ("rust: net::phy unified genphy_read_status function for C22 and C45 registers")
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
---
Please feel free to drop the Fixes tag -- I generally add them for
things that get actually rendered in the documentation, since the stable
team sometimes picks even typos, but it is of course not an bug on a
kernel feature, of course.

 rust/kernel/net/phy/reg.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rust/kernel/net/phy/reg.rs b/rust/kernel/net/phy/reg.rs
index a7db0064cb7d..4e8b58711bae 100644
--- a/rust/kernel/net/phy/reg.rs
+++ b/rust/kernel/net/phy/reg.rs
@@ -34,10 +34,10 @@ pub trait Sealed {}
 ///
 ///     // Checks the link status as reported by registers in the C22 namespace
 ///     // and updates current link state.
-///     dev.genphy_read_status::<phy::C22>();
+///     dev.genphy_read_status::<C22>();
 ///     // Checks the link status as reported by registers in the C45 namespace
 ///     // and updates current link state.
-///     dev.genphy_read_status::<phy::C45>();
+///     dev.genphy_read_status::<C45>();
 /// }
 /// ```
 pub trait Register: private::Sealed {

base-commit: e9a6fb0bcdd7609be6969112f3fbfcce3b1d4a7c
--
2.51.2

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-11-11 22:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-10 12:22 [PATCH 1/3] rust: net: phy: fix example's references to `C{22,45}` Miguel Ojeda
2025-11-10 12:22 ` [PATCH 2/3] rust: net: phy: make example buildable Miguel Ojeda
2025-11-10 23:34   ` FUJITA Tomonori
2025-11-11 21:02     ` Miguel Ojeda
2025-11-11 22:55       ` FUJITA Tomonori
2025-11-10 12:22 ` [PATCH 3/3] rust: net: phy: follow usual comment conventions Miguel Ojeda
2025-11-10 23:37   ` FUJITA Tomonori
2025-11-10 15:50 ` [PATCH 1/3] rust: net: phy: fix example's references to `C{22,45}` Andrew Lunn
2025-11-10 23:24 ` FUJITA Tomonori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).