Skip to content

Commit f1d0049

Browse files
krzkmiquelraynal
authored andcommitted
mtd: lpc32xx: 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> Acked-by: Vladimir Zapolskiy <vz@mleia.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20240208202113.630190-1-krzysztof.kozlowski@linaro.org
1 parent 8709aa3 commit f1d0049

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/linux/mtd/lpc32xx_mlc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include <linux/dmaengine.h>
1212

1313
struct lpc32xx_mlc_platform_data {
14-
bool (*dma_filter)(struct dma_chan *chan, void *filter_param);
14+
dma_filter_fn dma_filter;
1515
};
1616

1717
#endif /* __LINUX_MTD_LPC32XX_MLC_H */

include/linux/mtd/lpc32xx_slc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include <linux/dmaengine.h>
1212

1313
struct lpc32xx_slc_platform_data {
14-
bool (*dma_filter)(struct dma_chan *chan, void *filter_param);
14+
dma_filter_fn dma_filter;
1515
};
1616

1717
#endif /* __LINUX_MTD_LPC32XX_SLC_H */

0 commit comments

Comments
 (0)