]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rust: io: mem: use non-relaxed I/O ops in examples
authorAlexandre Courbot <acourbot@nvidia.com>
Fri, 6 Feb 2026 06:00:16 +0000 (15:00 +0900)
committerDanilo Krummrich <dakr@kernel.org>
Tue, 17 Mar 2026 19:02:09 +0000 (20:02 +0100)
commit19103d4f93673c804ef82dd797cd2b935d0bf70f
tree3b75ab76dd55f0bbd3967a286722d82fe55a8954
parente2d599021c843d97ee38ba351cb0117eb984e038
rust: io: mem: use non-relaxed I/O ops in examples

The `_relaxed` I/O variant methods are about to be replaced by a wrapper
type exposing this access pattern with the regular methods of the `Io`
trait. Thus replace the examples to use the regular I/O methods.

Since these are examples, we want them to use the most standard ops
anyway, and the relaxed variants were but an addition that was
MMIO-specific.

Reviewed-by: Daniel Almeida <daniel.almeida@collabora.com>
Acked-by: Alice Ryhl <aliceryhl@google.com>
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-by: Gary Guo <gary@garyguo.net>
Link: https://patch.msgid.link/20260206-io-v2-2-71dea20a06e6@nvidia.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
rust/kernel/io/mem.rs