Re: [PATCH] rust: io: fix example in `register!` macro
From: Gary Guo
Date: Wed Jul 01 2026 - 12:23:20 EST
On Wed Jul 1, 2026 at 5:03 PM BST, Link Mauve wrote:
> In this example, an u32 register is split in two u8 in big-endian order,
> but the high byte is actually defined as taking nine bits instead of
> eight.
>
> This is completely inconsequential, as I expect most users will just
> copy the bit ranges from their datasheets, but it doesn’t hurt to fix
> that typo.
>
> Signed-off-by: Link Mauve <linkmauve@xxxxxxxxxxxx>
Reviewed-by: Gary Guo <gary@xxxxxxxxxxx>
> ---
> rust/kernel/io/register.rs | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)