Commit 919b7292 authored by Alice Ryhl's avatar Alice Ryhl Committed by Danilo Krummrich
Browse files

rust: io: define ResourceSize as resource_size_t



These typedefs are always equivalent so this should not change anything,
but the code makes a lot more sense like this.

Cc: stable@vger.kernel.org
Signed-off-by: default avatarAlice Ryhl <aliceryhl@google.com>
Fixes: 493fc33e ("rust: io: add resource abstraction")
Link: https://patch.msgid.link/20251112-resource-phys-typedefs-v2-1-538307384f82@google.com


Signed-off-by: default avatarDanilo Krummrich <dakr@kernel.org>
parent ededb7bc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@
///
/// This is a type alias to either `u32` or `u64` depending on the config option
/// `CONFIG_PHYS_ADDR_T_64BIT`, and it can be a u64 even on 32-bit architectures.
pub type ResourceSize = bindings::phys_addr_t;
pub type ResourceSize = bindings::resource_size_t;

/// A region allocated from a parent [`Resource`].
///