Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drivers: dma-coherent: Fix typo in dma_mmap_from_coherent documentation

The function documentation incorrectly references dma_release_coherent.
Fix it. Don't mention a specific function name as dma_mmap_from_coherent
as multiple callers.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>

authored by

Laurent Pinchart and committed by
Marek Szyprowski
ba4d93bc 446c82fc

+2 -3
+2 -3
drivers/base/dma-coherent.c
··· 191 191 * This checks whether the memory was allocated from the per-device 192 192 * coherent memory pool and if so, maps that memory to the provided vma. 193 193 * 194 - * Returns 1 if we correctly mapped the memory, or 0 if 195 - * dma_release_coherent() should proceed with mapping memory from 196 - * generic pools. 194 + * Returns 1 if we correctly mapped the memory, or 0 if the caller should 195 + * proceed with mapping memory from generic pools. 197 196 */ 198 197 int dma_mmap_from_coherent(struct device *dev, struct vm_area_struct *vma, 199 198 void *vaddr, size_t size, int *ret)