Skip to content

Commit 3d4dd10

Browse files
krzkbroonie
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent c42d9be commit 3d4dd10

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/linux/spi/pxa2xx_spi.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#ifndef __LINUX_SPI_PXA2XX_SPI_H
66
#define __LINUX_SPI_PXA2XX_SPI_H
77

8+
#include <linux/dmaengine.h>
89
#include <linux/types.h>
910

1011
#include <linux/pxa2xx_ssp.h>
@@ -22,7 +23,7 @@ struct pxa2xx_spi_controller {
2223
bool is_target;
2324

2425
/* DMA engine specific config */
25-
bool (*dma_filter)(struct dma_chan *chan, void *param);
26+
dma_filter_fn dma_filter;
2627
void *tx_param;
2728
void *rx_param;
2829

0 commit comments

Comments
 (0)