Commit 03035847 authored by Sai Vishnu M's avatar Sai Vishnu M Committed by Miguel Ojeda
Browse files

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: default avatarMiguel Ojeda <ojeda@kernel.org>
Link: https://github.com/Rust-for-Linux/linux/issues/1167


Signed-off-by: default avatarSai Vishnu M <saivishnu725@gmail.com>
Reviewed-by: default avatarBenno 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: default avatarMiguel Ojeda <ojeda@kernel.org>
parent b6985083
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ pub fn maxsize(&self) -> usize {
    }
}

/// 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.