Skip to content

Commit

Permalink
spi: pxa2xx: Use typedef for dma_filter_fn
Browse files Browse the repository at this point in the history
Use existing typedef for dma_filter_fn to avoid duplicating type
definition.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240208202154.630336-3-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Krzysztof Kozlowski authored and Mark Brown committed Feb 8, 2024
1 parent c42d9be commit 3d4dd10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/linux/spi/pxa2xx_spi.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#ifndef __LINUX_SPI_PXA2XX_SPI_H
#define __LINUX_SPI_PXA2XX_SPI_H

#include <linux/dmaengine.h>
#include <linux/types.h>

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

/* DMA engine specific config */
bool (*dma_filter)(struct dma_chan *chan, void *param);
dma_filter_fn dma_filter;
void *tx_param;
void *rx_param;

Expand Down

0 comments on commit 3d4dd10

Please sign in to comment.