]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dmaengine: add DMA_TRANS_NONE to dma_transfer_direction
authorShawn Guo <shawn.guo@linaro.org>
Tue, 13 Dec 2011 15:48:03 +0000 (23:48 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:10:42 +0000 (14:10 +0200)
commite77f1701fb1986bd2edf7680f998c64271593138
tree3f0bf1c653c21502c4874b18bed12fd7ecbc7454
parenta52abce7d511ba581b8ee6d4e8fa8240589729fc
dmaengine: add DMA_TRANS_NONE to dma_transfer_direction

Before dma_transfer_direction was introduced to replace
dma_data_direction, some dmaengine device uses DMA_NONE of
dma_data_direction for some talk with its client drivers.
The mxs-dma and its clients mxs-mmc and gpmi-nand are such case.

This patch adds DMA_TRANS_NONE to dma_transfer_direction and
migrate the DMA_NONE use in mxs-dma to it.

It also fixes the compile warning below.

CC      drivers/dma/mxs-dma.o
drivers/dma/mxs-dma.c: In function ‘mxs_dma_prep_slave_sg’:
drivers/dma/mxs-dma.c:420:16: warning: comparison between ‘enum dma_transfer_direction’ and ‘enum dma_data_direction’

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
drivers/dma/mxs-dma.c
include/linux/dmaengine.h