aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2019-07-22 04:16:44 -0400
committerVinod Koul <vkoul@kernel.org>2019-07-22 11:26:37 -0400
commit9c71b9eb3cb25856e29f0486eae9ee1ba864ba51 (patch)
treef0944b625136aa7f75b32779cbc42f77a417eab1
parent5f9e832c137075045d15cd6899ab0505cfb2ca4b (diff)
dmaengine: omap-dma: make omap_dma_filter_fn private
With the audio driver no longer referring to this function, it can be made private to the dmaengine driver itself, and the header file removed. Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Link: https://lore.kernel.org/lkml/20190307151646.1016966-1-arnd@arndb.de/ Signed-off-by: Arnd Bergmann <arnd@arndb.de> Link: https://lore.kernel.org/r/20190722081705.2084961-1-arnd@arndb.de Signed-off-by: Vinod Koul <vkoul@kernel.org>
-rw-r--r--drivers/dma/ti/omap-dma.c3
-rw-r--r--include/linux/omap-dma.h2
-rw-r--r--include/linux/omap-dmaengine.h18
3 files changed, 2 insertions, 21 deletions
diff --git a/drivers/dma/ti/omap-dma.c b/drivers/dma/ti/omap-dma.c
index ba2489d4ea24..49da402a1927 100644
--- a/drivers/dma/ti/omap-dma.c
+++ b/drivers/dma/ti/omap-dma.c
@@ -202,6 +202,7 @@ static const unsigned es_bytes[] = {
202 [CSDP_DATA_TYPE_32] = 4, 202 [CSDP_DATA_TYPE_32] = 4,
203}; 203};
204 204
205static bool omap_dma_filter_fn(struct dma_chan *chan, void *param);
205static struct of_dma_filter_info omap_dma_info = { 206static struct of_dma_filter_info omap_dma_info = {
206 .filter_fn = omap_dma_filter_fn, 207 .filter_fn = omap_dma_filter_fn,
207}; 208};
@@ -1637,7 +1638,7 @@ static struct platform_driver omap_dma_driver = {
1637 }, 1638 },
1638}; 1639};
1639 1640
1640bool omap_dma_filter_fn(struct dma_chan *chan, void *param) 1641static bool omap_dma_filter_fn(struct dma_chan *chan, void *param)
1641{ 1642{
1642 if (chan->device->dev->driver == &omap_dma_driver.driver) { 1643 if (chan->device->dev->driver == &omap_dma_driver.driver) {
1643 struct omap_dmadev *od = to_omap_dma_dev(chan->device); 1644 struct omap_dmadev *od = to_omap_dma_dev(chan->device);
diff --git a/include/linux/omap-dma.h b/include/linux/omap-dma.h
index 840ce551e773..ba3cfbb52312 100644
--- a/include/linux/omap-dma.h
+++ b/include/linux/omap-dma.h
@@ -1,8 +1,6 @@
1/* SPDX-License-Identifier: GPL-2.0 */ 1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef __LINUX_OMAP_DMA_H 2#ifndef __LINUX_OMAP_DMA_H
3#define __LINUX_OMAP_DMA_H 3#define __LINUX_OMAP_DMA_H
4#include <linux/omap-dmaengine.h>
5
6/* 4/*
7 * Legacy OMAP DMA handling defines and functions 5 * Legacy OMAP DMA handling defines and functions
8 * 6 *
diff --git a/include/linux/omap-dmaengine.h b/include/linux/omap-dmaengine.h
deleted file mode 100644
index b6e42f933c40..000000000000
--- a/include/linux/omap-dmaengine.h
+++ /dev/null
@@ -1,18 +0,0 @@
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * OMAP DMA Engine support
4 */
5#ifndef __LINUX_OMAP_DMAENGINE_H
6#define __LINUX_OMAP_DMAENGINE_H
7
8struct dma_chan;
9
10#if defined(CONFIG_DMA_OMAP) || (defined(CONFIG_DMA_OMAP_MODULE) && defined(MODULE))
11bool omap_dma_filter_fn(struct dma_chan *, void *);
12#else
13static inline bool omap_dma_filter_fn(struct dma_chan *c, void *d)
14{
15 return false;
16}
17#endif
18#endif /* __LINUX_OMAP_DMAENGINE_H */