]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mmc: renesas_sdhi: use typedef for dma_filter_fn
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Thu, 8 Feb 2024 20:21:37 +0000 (21:21 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 13 Feb 2024 16:43:07 +0000 (17:43 +0100)
Use existing typedef for dma_filter_fn to avoid duplicating type
definition.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Link: https://lore.kernel.org/r/20240208202137.630281-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/renesas_sdhi.h

index c1fb9740eab0026fde2335b49fe4c67c50d9bcb4..586f94d4dbfddd7d54f45d1a59d47f95b4dc10ce 100644 (file)
@@ -9,6 +9,7 @@
 #ifndef RENESAS_SDHI_H
 #define RENESAS_SDHI_H
 
+#include <linux/dmaengine.h>
 #include <linux/platform_device.h>
 #include "tmio_mmc.h"
 
@@ -63,7 +64,7 @@ struct renesas_sdhi_of_data_with_quirks {
 struct renesas_sdhi_dma {
        unsigned long end_flags;
        enum dma_slave_buswidth dma_buswidth;
-       bool (*filter)(struct dma_chan *chan, void *arg);
+       dma_filter_fn filter;
        void (*enable)(struct tmio_mmc_host *host, bool enable);
        struct completion dma_dataend;
        struct tasklet_struct dma_complete;