summaryrefslogtreecommitdiffstats
path: root/include/linux/spi
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2024-02-08 21:21:54 +0100
committerMark Brown <broonie@kernel.org>2024-02-08 21:23:42 +0000
commit3d4dd10b376e1b8b6d0409f7e7b752f9baa51c24 (patch)
tree02f3d43e044f1c45fa956f4b787048413e61397f /include/linux/spi
parentc42d9bead493854507e1a180942ebe33c9180598 (diff)
downloadlinux-stable-3d4dd10b376e1b8b6d0409f7e7b752f9baa51c24.tar.gz
linux-stable-3d4dd10b376e1b8b6d0409f7e7b752f9baa51c24.tar.bz2
linux-stable-3d4dd10b376e1b8b6d0409f7e7b752f9baa51c24.zip
spi: pxa2xx: Use typedef for dma_filter_fn
Use existing typedef for dma_filter_fn to avoid duplicating type definition. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20240208202154.630336-3-krzysztof.kozlowski@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/spi')
-rw-r--r--include/linux/spi/pxa2xx_spi.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/spi/pxa2xx_spi.h b/include/linux/spi/pxa2xx_spi.h
index 0916cb9bcb0a..ca2cd4e30ead 100644
--- a/include/linux/spi/pxa2xx_spi.h
+++ b/include/linux/spi/pxa2xx_spi.h
@@ -5,6 +5,7 @@
#ifndef __LINUX_SPI_PXA2XX_SPI_H
#define __LINUX_SPI_PXA2XX_SPI_H
+#include <linux/dmaengine.h>
#include <linux/types.h>
#include <linux/pxa2xx_ssp.h>
@@ -22,7 +23,7 @@ struct pxa2xx_spi_controller {
bool is_target;
/* DMA engine specific config */
- bool (*dma_filter)(struct dma_chan *chan, void *param);
+ dma_filter_fn dma_filter;
void *tx_param;
void *rx_param;