]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Thu, 28 Nov 2019 04:59:27 +0000 (23:59 -0500)
commitb4c4d38610d0862edbcff7b89b27a80fe8d6ad6e
treec56d5baa0dfe1609bf7fb6aefc7ed077293e52ab
parentadf4ba3f2e293738bd9edf8565b280b76ea2cc2a
dmaengine: ep93xx: Return proper enum in ep93xx_dma_chan_direction

BugLink: https://bugs.launchpad.net/bugs/1854216
[ Upstream commit 9524d6b265f9b2b9a61fceb2ee2ce1c2a83e39ca ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
include/linux/platform_data/dma-ep93xx.h