Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dma: ep93xx_dma: reuse is_slave_direction helper

The is_slave_direction helps to check if the transfer type is slave.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>

authored by

Andy Shevchenko and committed by
Vinod Koul
0efcdb20 f44b92f4

+1 -2
+1 -2
drivers/dma/ep93xx_dma.c
··· 903 903 switch (data->port) { 904 904 case EP93XX_DMA_SSP: 905 905 case EP93XX_DMA_IDE: 906 - if (data->direction != DMA_MEM_TO_DEV && 907 - data->direction != DMA_DEV_TO_MEM) 906 + if (!is_slave_direction(data->direction)) 908 907 return -EINVAL; 909 908 break; 910 909 default: