]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
rust: dma: fix doc-comment of dma_handle()
authorAlexandre Courbot <acourbot@nvidia.com>
Thu, 19 Jun 2025 13:23:45 +0000 (22:23 +0900)
committerDanilo Krummrich <dakr@kernel.org>
Mon, 23 Jun 2025 15:10:44 +0000 (17:10 +0200)
A word was apparently missing in this sentence, hence fix it.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Link: https://lore.kernel.org/r/20250619-nova-frts-v6-1-ecf41ef99252@nvidia.com
Fixes: ad2907b4e308 ("rust: add dma coherent allocator abstraction")
[ Slightly expand commit subject and add 'Fixes:' tag. - Danilo ]
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
rust/kernel/dma.rs

index 3446a6d46878a1fe1a525c08487fb644ec75db7a..038e68c5a293a81a1ea629ea8e083b58639c3176 100644 (file)
@@ -212,7 +212,7 @@ impl<T: AsBytes + FromBytes> CoherentAllocation<T> {
         self.cpu_addr
     }
 
-    /// Returns a DMA handle which may given to the device as the DMA address base of
+    /// Returns a DMA handle which may be given to the device as the DMA address base of
     /// the region.
     pub fn dma_handle(&self) -> bindings::dma_addr_t {
         self.dma_handle