summaryrefslogtreecommitdiff
path: root/rust/kernel/io/resource.rs
diff options
context:
space:
mode:
authorDanilo Krummrich <dakr@kernel.org>2025-11-03 20:06:49 +0100
committerDanilo Krummrich <dakr@kernel.org>2025-11-11 19:45:23 +1100
commitf7afdc473794ab71d38475755be72dc95e361c31 (patch)
treec983326839b9545571b4f97ced1d755ce4938364 /rust/kernel/io/resource.rs
parentd8407396f128d8bf4d06282b636df3f26db208c1 (diff)
rust: dma: make use of start_ptr() and start_ptr_mut()
Using start_ptr() and start_ptr_mut() has the advantage that we inherit the requirements the a mutable or immutable reference from those methods. Hence, use them instead of self.cpu_addr. Reviewed-by: Alice Ryhl <aliceryhl@google.com> Link: https://patch.msgid.link/20251103190655.2326191-1-dakr@kernel.org [ Keep using self.cpu_addr in item_from_index(). - Danilo ] Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'rust/kernel/io/resource.rs')
0 files changed, 0 insertions, 0 deletions