summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorNathan Chancellor <natechancellor@gmail.com>2018-09-20 16:13:37 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-11-20 18:47:11 +0100
commitaf4749d23d46fc81c59e19a338081422ea779af1 (patch)
tree9920af78c0f0c9c651a252a0d379ecbce377318b /crypto
parentc2f76a19fbc84784ef279c0eadd6724974d2265b (diff)
downloadlinux-stable-af4749d23d46fc81c59e19a338081422ea779af1.tar.gz
linux-stable-af4749d23d46fc81c59e19a338081422ea779af1.tar.bz2
linux-stable-af4749d23d46fc81c59e19a338081422ea779af1.zip
spi: pic32: Use proper enum in dmaengine_prep_slave_rg
[ Upstream commit 8cfde7847d5ed0bb77bace41519572963e43cd17 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions