Skip to content

Commit

Permalink
spi: pl022: 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-1-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 4f48577 commit d1ff85f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/linux/amba/pl022.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#ifndef _SSP_PL022_H
#define _SSP_PL022_H

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

/**
Expand Down Expand Up @@ -235,7 +236,7 @@ struct dma_chan;
struct pl022_ssp_controller {
u16 bus_id;
u8 enable_dma:1;
bool (*dma_filter)(struct dma_chan *chan, void *filter_param);
dma_filter_fn dma_filter;
void *dma_rx_param;
void *dma_tx_param;
int autosuspend_delay;
Expand Down

0 comments on commit d1ff85f

Please sign in to comment.