[PATCHv2 03/11] dma: dw_dmac: check direction properly in dw_dma_cyclic_prep

2013-01-10 Thread Andy Shevchenko
dma_transfer_direction is a normal enum. It means we can't usually use the values as bit fields. Let's adjust this check and move it above the usage of the direction parameter, due to the nature of the following usage of it. Signed-off-by: Andy Shevchenko Acked-by: Viresh Kumar ---

[PATCHv2 03/11] dma: dw_dmac: check direction properly in dw_dma_cyclic_prep

2013-01-10 Thread Andy Shevchenko
dma_transfer_direction is a normal enum. It means we can't usually use the values as bit fields. Let's adjust this check and move it above the usage of the direction parameter, due to the nature of the following usage of it. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com