]> git.ipfire.org Git - thirdparty/linux.git/commit
rust: dma: make use of start_ptr() and start_ptr_mut()
authorDanilo Krummrich <dakr@kernel.org>
Mon, 3 Nov 2025 19:06:49 +0000 (20:06 +0100)
committerDanilo Krummrich <dakr@kernel.org>
Tue, 11 Nov 2025 08:45:23 +0000 (19:45 +1100)
commitf7afdc473794ab71d38475755be72dc95e361c31
treec983326839b9545571b4f97ced1d755ce4938364
parentd8407396f128d8bf4d06282b636df3f26db208c1
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>
rust/kernel/dma.rs