]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: timb_dma: Use proper enum in td_prep_slave_sg
authorNathan Chancellor <natechancellor@gmail.com>
Tue, 11 Sep 2018 23:20:25 +0000 (16:20 -0700)
committerVinod Koul <vkoul@kernel.org>
Tue, 2 Oct 2018 14:41:09 +0000 (20:11 +0530)
commit2c5e66367da83d9266ebc88ac802a9402f4225b7
tree8acf69208d1b6a222c3fa6d206181135e3b1e218
parent17d3faa776bf6437e27029b77a9d4ea05b95be4e
dmaengine: timb_dma: Use proper enum in td_prep_slave_sg

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

drivers/dma/timb_dma.c:548:27: warning: implicit conversion from
enumeration type 'enum dma_transfer_direction' to different enumeration
type 'enum dma_data_direction' [-Wenum-conversion]
                td_desc->desc_list_len, DMA_MEM_TO_DEV);
                                        ^~~~~~~~~~~~~~
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>
drivers/dma/timb_dma.c