Skip to content

Commit fc143e3

Browse files
committed
dmaengine: owl-dma: fix kernel-doc style for enum
Driver doesn't use keyword enum for enum owl_dmadesc_offsets resulting in warning: drivers/dma/owl-dma.c:139: warning: cannot understand function prototype: 'enum owl_dmadesc_offsets ' So add the keyword to fix it and also add documentation for missing OWL_DMADESC_SIZE Signed-off-by: Vinod Koul <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 2997ced commit fc143e3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/dma/owl-dma.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
#define FCNT_VAL 0x1
125125

126126
/**
127-
* owl_dmadesc_offsets - Describe DMA descriptor, hardware link
127+
* enum owl_dmadesc_offsets - Describe DMA descriptor, hardware link
128128
* list for dma transfer
129129
* @OWL_DMADESC_NEXT_LLI: physical address of the next link list
130130
* @OWL_DMADESC_SADDR: source physical address
@@ -135,6 +135,7 @@
135135
* @OWL_DMADESC_CTRLA: dma_mode and linklist ctrl config
136136
* @OWL_DMADESC_CTRLB: interrupt config
137137
* @OWL_DMADESC_CONST_NUM: data for constant fill
138+
* @OWL_DMADESC_SIZE: max size of this enum
138139
*/
139140
enum owl_dmadesc_offsets {
140141
OWL_DMADESC_NEXT_LLI = 0,

0 commit comments

Comments
 (0)