dmaengine: Add an enum for the dmaengine alignment constraints
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 20 Jul 2015 08:41:32 +0000 (10:41 +0200)
committerVinod Koul <vinod.koul@intel.com>
Wed, 5 Aug 2015 05:23:52 +0000 (10:53 +0530)
commit77a68e56aae141d3e9c740a0ac43362af75d4890
tree331c81fe450bb885ec34ccedc4fd57fdc1bc68e5
parent056f6c87028544de934f27caf95aa1545d585767
dmaengine: Add an enum for the dmaengine alignment constraints

Most drivers need to set constraints on the buffer alignment for async tx
operations. However, even though it is documented, some drivers either use
a defined constant that is not matching what the alignment variable expects
(like DMA_BUSWIDTH_* constants) or fill the alignment in bytes instead of
power of two.

Add a new enum for these alignments that matches what the framework
expects, and convert the drivers to it.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
12 files changed:
drivers/dma/coh901318.c
drivers/dma/dma-jz4780.c
drivers/dma/edma.c
drivers/dma/imx-dma.c
drivers/dma/k3dma.c
drivers/dma/mic_x100_dma.h
drivers/dma/mmp_pdma.c
drivers/dma/mmp_tdma.c
drivers/dma/ste_dma40.c
drivers/dma/sun6i-dma.c
drivers/dma/xgene-dma.c
include/linux/dmaengine.h