Skip to content

Commit cb3952b

Browse files
lumagjbarnes993
authored andcommitted
DMA: make dma-coherent.c documentation kdoc-friendly
Spotted by Randy. Acked-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
1 parent bba8116 commit cb3952b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

kernel/dma-coherent.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,19 +92,19 @@ void *dma_mark_declared_memory_occupied(struct device *dev,
9292
EXPORT_SYMBOL(dma_mark_declared_memory_occupied);
9393

9494
/**
95-
* Try to allocate memory from the per-device coherent area.
95+
* dma_alloc_from_coherent() - try to allocate memory from the per-device coherent area
9696
*
9797
* @dev: device from which we allocate memory
9898
* @size: size of requested memory area
9999
* @dma_handle: This will be filled with the correct dma handle
100100
* @ret: This pointer will be filled with the virtual address
101101
* to allocated area.
102102
*
103-
* This function should be only called from per-arch %dma_alloc_coherent()
103+
* This function should be only called from per-arch dma_alloc_coherent()
104104
* to support allocation from per-device coherent memory pools.
105105
*
106106
* Returns 0 if dma_alloc_coherent should continue with allocating from
107-
* generic memory areas, or !0 if dma_alloc_coherent should return %ret.
107+
* generic memory areas, or !0 if dma_alloc_coherent should return @ret.
108108
*/
109109
int dma_alloc_from_coherent(struct device *dev, ssize_t size,
110110
dma_addr_t *dma_handle, void **ret)
@@ -126,7 +126,7 @@ int dma_alloc_from_coherent(struct device *dev, ssize_t size,
126126
}
127127

128128
/**
129-
* Try to free the memory allocated from per-device coherent memory pool.
129+
* dma_release_from_coherent() - try to free the memory allocated from per-device coherent memory pool
130130
* @dev: device from which the memory was allocated
131131
* @order: the order of pages allocated
132132
* @vaddr: virtual address of allocated pages
@@ -135,7 +135,7 @@ int dma_alloc_from_coherent(struct device *dev, ssize_t size,
135135
* coherent memory pool and if so, releases that memory.
136136
*
137137
* Returns 1 if we correctly released the memory, or 0 if
138-
* %dma_release_coherent() should proceed with releasing memory from
138+
* dma_release_coherent() should proceed with releasing memory from
139139
* generic pools.
140140
*/
141141
int dma_release_from_coherent(struct device *dev, int order, void *vaddr)

0 commit comments

Comments
 (0)