Skip to content

Commit 0303584

Browse files
saivishnu725ojeda
authored andcommitted
rust: io: avoid mentioning private fields in IoMem
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: #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>
1 parent b698508 commit 0303584

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/kernel/io.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ impl<const SIZE: usize> IoRaw<SIZE> {
4343
}
4444
}
4545

46-
/// IO-mapped memory, starting at the base address @addr and spanning @maxlen bytes.
46+
/// IO-mapped memory region.
4747
///
4848
/// The creator (usually a subsystem / bus such as PCI) is responsible for creating the
4949
/// mapping, performing an additional region request etc.

0 commit comments

Comments
 (0)