summaryrefslogtreecommitdiff
path: root/include/linux/input
diff options
context:
space:
mode:
authorAlexandre Courbot <acourbot@nvidia.com>2026-03-14 04:06:16 +0300
committerDanilo Krummrich <dakr@kernel.org>2026-03-17 22:04:11 +0300
commit147b41ba23d63f43ed34e6940417a5506e323370 (patch)
tree2520e5dd96a27674f24e41ecf5eae2eb8e6a56eb /include/linux/input
parent498823541be1e2d9f947b37a10cc98e681da9828 (diff)
downloadlinux-147b41ba23d63f43ed34e6940417a5506e323370.tar.xz
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 'include/linux/input')
0 files changed, 0 insertions, 0 deletions