]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
rust: io: avoid mentioning private fields in `IoMem`
authorSai Vishnu M <saivishnu725@gmail.com>
Mon, 2 Jun 2025 16:49:24 +0000 (22:19 +0530)
committerMiguel Ojeda <ojeda@kernel.org>
Mon, 23 Jun 2025 23:02:30 +0000 (01:02 +0200)
Removed reference to internal variables in the comment of `IoMem`
This avoids using private variable names in public documentation.

Suggested-by: Miguel Ojeda <ojeda@kernel.org>
Link: https://github.com/Rust-for-Linux/linux/issues/1167
Signed-off-by: Sai Vishnu M <saivishnu725@gmail.com>
Reviewed-by: Benno Lossin <lossin@kernel.org>
Link: https://lore.kernel.org/r/20250602164923.48893-2-saivishnu725@gmail.com
[ Reworded title and adjusted tags. - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/kernel/io.rs

index c08de41216376267a8d8f983111d20c61df80552..bd4d720be1653295ed19860f5cf424ae9d3436d7 100644 (file)
@@ -43,7 +43,7 @@ impl<const SIZE: usize> IoRaw<SIZE> {
     }
 }
 
-/// IO-mapped memory, starting at the base address @addr and spanning @maxlen bytes.
+/// IO-mapped memory region.
 ///
 /// The creator (usually a subsystem / bus such as PCI) is responsible for creating the
 /// mapping, performing an additional region request etc.