summaryrefslogtreecommitdiff
path: root/arch/v850/kernel/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorAlexandre Courbot <acourbot@nvidia.com>2026-03-14 10:06:16 +0900
committerDanilo Krummrich <dakr@kernel.org>2026-03-17 20:04:11 +0100
commit147b41ba23d63f43ed34e6940417a5506e323370 (patch)
tree2520e5dd96a27674f24e41ecf5eae2eb8e6a56eb /arch/v850/kernel/git@git.tavy.me:linux.git
parent498823541be1e2d9f947b37a10cc98e681da9828 (diff)
rust: io: use generic read/write accessors for primitive accesses
By providing the required `IoLoc` implementations on `usize`, we can leverage the generic accessors and reduce the number of unsafe blocks in the module. This also allows us to directly call the generic `read/write/update` methods with primitive types, so add examples illustrating this. Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Reviewed-by: Gary Guo <gary@garyguo.net> Link: https://patch.msgid.link/20260314-register-v9-6-86805b2f7e9d@nvidia.com [ Slightly improve wording in doc-comment. - Danilo ] Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'arch/v850/kernel/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions