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

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>

+2 -14
+2 -3
drivers/dma/pxa_dma.c
··· 179 179 return 0x1000 + line * 4; 180 180 } 181 181 182 - bool pxad_filter_fn(struct dma_chan *chan, void *param); 182 + static bool pxad_filter_fn(struct dma_chan *chan, void *param); 183 183 184 184 /* 185 185 * Debug fs ··· 1500 1500 .remove = pxad_remove, 1501 1501 }; 1502 1502 1503 - bool pxad_filter_fn(struct dma_chan *chan, void *param) 1503 + static bool pxad_filter_fn(struct dma_chan *chan, void *param) 1504 1504 { 1505 1505 struct pxad_chan *c = to_pxad_chan(chan); 1506 1506 struct pxad_param *p = param; ··· 1513 1513 1514 1514 return true; 1515 1515 } 1516 - EXPORT_SYMBOL_GPL(pxad_filter_fn); 1517 1516 1518 1517 module_platform_driver(pxad_driver); 1519 1518
-11
include/linux/dma/pxa-dma.h
··· 23 23 enum pxad_chan_prio prio; 24 24 }; 25 25 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 - 37 26 #endif /* _PXA_DMA_H_ */