summaryrefslogtreecommitdiffstats
path: root/drivers/macintosh/ams/ams-pmu.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven2018-03-21 09:07:23 +0100
committerMark Brown2018-03-22 02:38:53 +0100
commitda779513d33575fc43a9ae87a95af6b4354cebaa (patch)
tree94026faaf3e519a1579cb1be836cc6e75a14c821 /drivers/macintosh/ams/ams-pmu.c
parentLinux 4.16-rc1 (diff)
downloadkernel-qcow2-linux-da779513d33575fc43a9ae87a95af6b4354cebaa.tar.gz
kernel-qcow2-linux-da779513d33575fc43a9ae87a95af6b4354cebaa.tar.xz
kernel-qcow2-linux-da779513d33575fc43a9ae87a95af6b4354cebaa.zip
spi: sh-msiof: 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-sh-msiof.c:755:27: 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-sh-msiof.c:772:27: 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, ^~~~~~~~~~~~~ Based on commit 768d59f5d0139a6f ("spi: rspi: use correct enum for DMA transfer direction"). Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Stefan Agner <stefan@agner.ch> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/macintosh/ams/ams-pmu.c')
0 files changed, 0 insertions, 0 deletions