dmaengine: at_hdmac: simplify device selection from platform data or DT
commit02f88be9488a3d831f073c1161b1e5feacb9d3ec
authorNicolas Ferre <nicolas.ferre@atmel.com>
Tue, 22 Nov 2011 10:55:54 +0000 (22 11:55 +0100)
committerVinod Koul <vinod.koul@linux.intel.com>
Mon, 28 Nov 2011 10:25:36 +0000 (28 15:55 +0530)
treef4d9a53a2185a6e118ad64e2e27901a0ccb6e43a
parentdcc817346d311bbd9dac6fc9d6bddb552134851c
dmaengine: at_hdmac: simplify device selection from platform data or DT

Using a configuration structure simplify the finding of SoC
dependent parameters. Both platform data and device tree ids are
using these structures.
This will separate data from code and remove the need for an enum.

Idea from Grant Likely.

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
drivers/dma/at_hdmac.c
drivers/dma/at_hdmac_regs.h