Skip to content

Commit 397321f

Browse files
Alexander PopovVinod Koul
authored andcommitted
dmaengine: fix incorrect kernel-doc comment for struct dma_slave_config
The 'direction' member of 'struct dma_slave_config' is of data type 'enum dma_transfer_direction', so update the kernel-doc comment for 'struct dma_slave_config' to refer to appropriate values. Signed-off-by: Alexander Popov <a13xp0p0v88@gmail.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
1 parent a9ebbcd commit 397321f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

include/linux/dmaengine.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -305,9 +305,8 @@ enum dma_slave_buswidth {
305305
/**
306306
* struct dma_slave_config - dma slave channel runtime config
307307
* @direction: whether the data shall go in or out on this slave
308-
* channel, right now. DMA_TO_DEVICE and DMA_FROM_DEVICE are
309-
* legal values, DMA_BIDIRECTIONAL is not acceptable since we
310-
* need to differentiate source and target addresses.
308+
* channel, right now. DMA_MEM_TO_DEV and DMA_DEV_TO_MEM are
309+
* legal values.
311310
* @src_addr: this is the physical address where DMA slave data
312311
* should be read (RX), if the source is memory this argument is
313312
* ignored.

0 commit comments

Comments
 (0)