dmaengine: ste_dma40: Amalgamate DMA source and destination channel numbers
authorLee Jones <lee.jones@linaro.org>
Fri, 3 May 2013 14:31:56 +0000 (15:31 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 23 May 2013 19:11:51 +0000 (21:11 +0200)
commit26955c07dcf3c36b6427e52fec0f725300ca079e
treeeb6a3ff98566809292403701019bdf1a42e151f1
parent4f8fc46c797015dddc1d4c76e1b485b57373683b
dmaengine: ste_dma40: Amalgamate DMA source and destination channel numbers

Devices which utilise DMA use the same device numbers for transmitting
and receiving. In this patch we encode the source and destination
information into one single attribute. We can subsequently exploit the
direction attribute to see which of the transfer directions are being
described. This also lessens the burden on platform data.

Cc: Dan Williams <djbw@fb.com>
Cc: Per Forlin <per.forlin@stericsson.com>
Cc: Rabin Vincent <rabin@rab.in>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/mach-ux500/board-mop500-audio.c
arch/arm/mach-ux500/board-mop500-sdi.c
arch/arm/mach-ux500/board-mop500.c
arch/arm/mach-ux500/cpu-db8500.c
arch/arm/mach-ux500/devices-db8500.c
arch/arm/mach-ux500/ste-dma40-db8500.h
arch/arm/mach-ux500/usb.c
drivers/dma/ste_dma40.c
drivers/dma/ste_dma40_ll.c
include/linux/platform_data/dma-ste-dma40.h