[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20240208202129.630242-1-krzysztof.kozlowski@linaro.org>
Date: Thu, 8 Feb 2024 21:21:29 +0100
From: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
To: Russell King <linux@...linux.org.uk>,
linux-kernel@...r.kernel.org
Cc: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
Subject: [PATCH] serial: amba: 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@...aro.org>
---
include/linux/amba/serial.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/linux/amba/serial.h b/include/linux/amba/serial.h
index 9120de05ead0..ea3646e7a803 100644
--- a/include/linux/amba/serial.h
+++ b/include/linux/amba/serial.h
@@ -15,6 +15,7 @@
#include <linux/bits.h>
#endif
+#include <linux/dmaengine.h>
#include <linux/types.h>
/* -------------------------------------------------------------------------------
@@ -223,7 +224,7 @@ struct amba_pl010_data {
struct dma_chan;
struct amba_pl011_data {
- bool (*dma_filter)(struct dma_chan *chan, void *filter_param);
+ dma_filter_fn dma_filter;
void *dma_rx_param;
void *dma_tx_param;
bool dma_rx_poll_enable;
--
2.34.1
Powered by blists - more mailing lists