ASoC: rcar: Fix dma direction type
authorLars-Peter Clausen <lars@metafoo.de>
Thu, 19 Jun 2014 07:40:30 +0000 (09:40 +0200)
committerSimon Horman <horms@verge.net.au>
Fri, 5 Dec 2014 00:24:33 +0000 (09:24 +0900)
commit9497712ae188fb7acf9fd34cc439dee6cd0fee91
tree2502724e0b0045b0bd21a3a66ef399c5c32fb1a7
parenta33f55494e138f3e7e61ced61b6ec2de33cd0a42
ASoC: rcar: Fix dma direction type

dmaengine_prep_slave_single() expects a enum dma_transfer_direction and not a
enum dma_data_direction. Since the integer representations of both DMA_TO_DEVICE
and DMA_MEM_TO_DEV aswell as DMA_FROM_DEVICE and DMA_DEV_TO_MEM have the same
value the code worked fine even though it was using the wrong type.

Fixes the following warning from sparse:
sound/soc/sh/rcar/core.c:227:49: warning: mixing different enum types
sound/soc/sh/rcar/core.c:227:49:     int enum dma_data_direction  versus
sound/soc/sh/rcar/core.c:227:49:     int enum dma_transfer_direction

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
(cherry picked from commit cd7bcc6000165f6215d15e2e32b58a646e5de5ec)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
sound/soc/sh/rcar/core.c
sound/soc/sh/rcar/rsnd.h