dma: imx-sdma: Use struct for driver data
authorSascha Hauer <s.hauer@pengutronix.de>
Tue, 20 Aug 2013 08:04:31 +0000 (10:04 +0200)
committerVinod Koul <vinod.koul@intel.com>
Mon, 26 Aug 2013 15:17:16 +0000 (20:47 +0530)
commit17bba72f8f89a1a164faa0d0b3f1d850eba399ce
tree482ea74df9cf34b1e9987829a5f497198cfbb844
parent023bf55f1c21214cab411cf767d53c8717de6d21
dma: imx-sdma: Use struct for driver data

Use a struct type instead of an enum type for distinguishing between
different versions. This makes it simpler to handle multiple differences
without cluttering the code with comparisons for certain devtypes.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/imx-sdma.c