Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Krzysztof Kozlowski and committed by
Miquel Raynal
f1d00496 8709aa3e

+2 -2
+1 -1
include/linux/mtd/lpc32xx_mlc.h
··· 11 11 #include <linux/dmaengine.h> 12 12 13 13 struct lpc32xx_mlc_platform_data { 14 - bool (*dma_filter)(struct dma_chan *chan, void *filter_param); 14 + dma_filter_fn dma_filter; 15 15 }; 16 16 17 17 #endif /* __LINUX_MTD_LPC32XX_MLC_H */
+1 -1
include/linux/mtd/lpc32xx_slc.h
··· 11 11 #include <linux/dmaengine.h> 12 12 13 13 struct lpc32xx_slc_platform_data { 14 - bool (*dma_filter)(struct dma_chan *chan, void *filter_param); 14 + dma_filter_fn dma_filter; 15 15 }; 16 16 17 17 #endif /* __LINUX_MTD_LPC32XX_SLC_H */