diff options
author | Nathan Chancellor <natechancellor@gmail.com> | 2018-09-21 02:13:37 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-09-21 04:11:22 +0300 |
commit | 8cfde7847d5ed0bb77bace41519572963e43cd17 (patch) | |
tree | eb198807ff51dac695699863fb92b73e16938b41 /drivers/spi/spi-sprd.c | |
parent | 380583227c0c7f52383b0cd5c0e2de93ed31d553 (diff) | |
download | linux-8cfde7847d5ed0bb77bace41519572963e43cd17.tar.xz |
spi: pic32: Use proper enum in dmaengine_prep_slave_rg
Clang warns when one enumerated type is converted implicitly to another:
drivers/spi/spi-pic32.c:323:8: warning: implicit conversion from
enumeration type 'enum dma_data_direction' to different enumeration type
'enum dma_transfer_direction' [-Wenum-conversion]
DMA_FROM_DEVICE,
^~~~~~~~~~~~~~~
drivers/spi/spi-pic32.c:333:8: warning: implicit conversion from
enumeration type 'enum dma_data_direction' to different enumeration type
'enum dma_transfer_direction' [-Wenum-conversion]
DMA_TO_DEVICE,
^~~~~~~~~~~~~
2 warnings generated.
Use the proper enums from dma_transfer_direction (DMA_FROM_DEVICE =
DMA_DEV_TO_MEM = 2, DMA_TO_DEVICE = DMA_MEM_TO_DEV = 1) to satify Clang.
Link: https://github.com/ClangBuiltLinux/linux/issues/159
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-sprd.c')
0 files changed, 0 insertions, 0 deletions