]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: ep93xx: Return proper enum in ep93xx_dma_chan_direction
authorNathan Chancellor <natechancellor@gmail.com>
Tue, 11 Sep 2018 23:40:20 +0000 (16:40 -0700)
committerVinod Koul <vkoul@kernel.org>
Tue, 2 Oct 2018 14:41:00 +0000 (20:11 +0530)
commit33dbf3049c16678cce6b982861595db10cda362d
treeb2bd60c9884e339f7c5f5dc513fc64a505804758
parentf030a7bb7b1f7de16c1c716a587185e209e25800
dmaengine: ep93xx: Return proper enum in ep93xx_dma_chan_direction

Clang warns when implicitly converting from one enumerated type to
another. Avoid this by using the equivalent value from the expected
type.

In file included from drivers/dma/ep93xx_dma.c:30:
./include/linux/platform_data/dma-ep93xx.h:88:10: warning: implicit
conversion from enumeration type 'enum dma_data_direction' to different
enumeration type 'enum dma_transfer_direction' [-Wenum-conversion]
                return DMA_NONE;
                ~~~~~~ ^~~~~~~~
1 warning generated.

Reported-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
include/linux/platform_data/dma-ep93xx.h