summaryrefslogtreecommitdiffstats
path: root/net/batman-adv/icmp_socket.h
diff options
context:
space:
mode:
authorStefan Agner <stefan@agner.ch>2018-03-19 23:16:22 +0100
committerMark Brown <broonie@kernel.org>2018-03-20 02:02:12 +0100
commit768d59f5d0139a6ff09e4430ec29cdc8b436421a (patch)
tree2ffa54a8b63bda86dbe69e3c815135e7060bdcef /net/batman-adv/icmp_socket.h
parentLinux 4.16-rc1 (diff)
downloadlinux-768d59f5d0139a6ff09e4430ec29cdc8b436421a.tar.xz
linux-768d59f5d0139a6ff09e4430ec29cdc8b436421a.zip
spi: rspi: use correct enum for DMA transfer direction
Use enum dma_transfer_direction as required by dmaengine_prep_slave_sg instead of enum dma_data_direction. This won't change behavior in practice as the enum values are equivalent. This fixes two warnings when building with clang: drivers/spi/spi-rspi.c:538:26: warning: implicit conversion from enumeration type 'enum dma_data_direction' to different enumeration type 'enum dma_transfer_direction' [-Wenum-conversion] rx->sgl, rx->nents, DMA_FROM_DEVICE, ^~~~~~~~~~~~~~~ drivers/spi/spi-rspi.c:558:26: warning: implicit conversion from enumeration type 'enum dma_data_direction' to different enumeration type 'enum dma_transfer_direction' [-Wenum-conversion] tx->sgl, tx->nents, DMA_TO_DEVICE, ^~~~~~~~~~~~~ Signed-off-by: Stefan Agner <stefan@agner.ch> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'net/batman-adv/icmp_socket.h')
0 files changed, 0 insertions, 0 deletions