1
0

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: Alice Ryhl <aliceryhl@google.com>
Fixes: 493fc33ec2 ("rust: io: add resource abstraction")
Link: https://patch.msgid.link/20251112-resource-phys-typedefs-v2-1-538307384f82@google.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
This commit is contained in:
Alice Ryhl
2025-11-12 09:48:32 +00:00
committed by Danilo Krummrich
parent ededb7bcdf
commit 919b729227

View File

@@ -20,7 +20,7 @@ use crate::{
///
/// 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`].
///