diff options
| author | Danilo Krummrich <dakr@kernel.org> | 2025-11-03 20:06:49 +0100 |
|---|---|---|
| committer | Danilo Krummrich <dakr@kernel.org> | 2025-11-11 19:45:23 +1100 |
| commit | f7afdc473794ab71d38475755be72dc95e361c31 (patch) | |
| tree | c983326839b9545571b4f97ced1d755ce4938364 /rust/kernel/io/resource.rs | |
| parent | d8407396f128d8bf4d06282b636df3f26db208c1 (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