mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
[PATCH] kernel-doc for kernel/dma.c
Add kernel-doc function headers in kernel/dma.c and use it in DocBook.
Clean up kernel-doc in mca_dma.h (the colon (':') represents a
section header).
Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
d3717bdf8f
commit
eed34d0fc5
3 changed files with 14 additions and 3 deletions
10
kernel/dma.c
10
kernel/dma.c
|
|
@ -62,6 +62,11 @@ static struct dma_chan dma_chan_busy[MAX_DMA_CHANNELS] = {
|
|||
};
|
||||
|
||||
|
||||
/**
|
||||
* request_dma - request and reserve a system DMA channel
|
||||
* @dmanr: DMA channel number
|
||||
* @device_id: reserving device ID string, used in /proc/dma
|
||||
*/
|
||||
int request_dma(unsigned int dmanr, const char * device_id)
|
||||
{
|
||||
if (dmanr >= MAX_DMA_CHANNELS)
|
||||
|
|
@ -76,7 +81,10 @@ int request_dma(unsigned int dmanr, const char * device_id)
|
|||
return 0;
|
||||
} /* request_dma */
|
||||
|
||||
|
||||
/**
|
||||
* free_dma - free a reserved system DMA channel
|
||||
* @dmanr: DMA channel number
|
||||
*/
|
||||
void free_dma(unsigned int dmanr)
|
||||
{
|
||||
if (dmanr >= MAX_DMA_CHANNELS) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue