summaryrefslogtreecommitdiff
path: root/rust/kernel/io/resource.rs
diff options
context:
space:
mode:
authorAlice Ryhl <aliceryhl@google.com>2025-11-12 09:48:32 +0000
committerDanilo Krummrich <dakr@kernel.org>2025-11-13 19:58:24 +1100
commit919b72922717e396be9435c83916b9969505bd23 (patch)
tree78e9b863568d7435d1a784a36e7bae9f21beddc8 /rust/kernel/io/resource.rs
parentededb7bcdfdbcfbb7af93e3a543165a9553e1683 (diff)
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: 493fc33ec252 ("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>
Diffstat (limited to 'rust/kernel/io/resource.rs')
-rw-r--r--rust/kernel/io/resource.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/kernel/io/resource.rs b/rust/kernel/io/resource.rs
index 81220493a7f3..e294af96b374 100644
--- a/rust/kernel/io/resource.rs
+++ b/rust/kernel/io/resource.rs
@@ -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`].
///