Skip to content

Commit c2a70a3

Browse files
committed
dmaengine: pxa: make the filter function internal
As the pxa architecture and all its related drivers do not rely anymore on the filter function, thanks to the slave map conversion, make pxad_filter_fn() static, and remove it from the global namespace. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Acked-by: Vinod Koul <vkoul@kernel.org>
1 parent 6510223 commit c2a70a3

2 files changed

Lines changed: 2 additions & 14 deletions

File tree

‎drivers/dma/pxa_dma.c‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ static unsigned int pxad_drcmr(unsigned int line)
179179
return 0x1000 + line * 4;
180180
}
181181

182-
bool pxad_filter_fn(struct dma_chan *chan, void *param);
182+
static bool pxad_filter_fn(struct dma_chan *chan, void *param);
183183

184184
/*
185185
* Debug fs
@@ -1500,7 +1500,7 @@ static struct platform_driver pxad_driver = {
15001500
.remove = pxad_remove,
15011501
};
15021502

1503-
bool pxad_filter_fn(struct dma_chan *chan, void *param)
1503+
static bool pxad_filter_fn(struct dma_chan *chan, void *param)
15041504
{
15051505
struct pxad_chan *c = to_pxad_chan(chan);
15061506
struct pxad_param *p = param;
@@ -1513,7 +1513,6 @@ bool pxad_filter_fn(struct dma_chan *chan, void *param)
15131513

15141514
return true;
15151515
}
1516-
EXPORT_SYMBOL_GPL(pxad_filter_fn);
15171516

15181517
module_platform_driver(pxad_driver);
15191518

‎include/linux/dma/pxa-dma.h‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,4 @@ struct pxad_param {
2323
enum pxad_chan_prio prio;
2424
};
2525

26-
struct dma_chan;
27-
28-
#ifdef CONFIG_PXA_DMA
29-
bool pxad_filter_fn(struct dma_chan *chan, void *param);
30-
#else
31-
static inline bool pxad_filter_fn(struct dma_chan *chan, void *param)
32-
{
33-
return false;
34-
}
35-
#endif
36-
3726
#endif /* _PXA_DMA_H_ */

0 commit comments

Comments
 (0)