Skip to content

Commit

Permalink
dmaengine: omap-dma: make omap_dma_filter_fn private
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Arnd Bergmann authored and Vinod Koul committed Jul 22, 2019
1 parent 5f9e832 commit 9c71b9e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 21 deletions.
3 changes: 2 additions & 1 deletion drivers/dma/ti/omap-dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ static const unsigned es_bytes[] = {
[CSDP_DATA_TYPE_32] = 4,
};

static bool omap_dma_filter_fn(struct dma_chan *chan, void *param);
static struct of_dma_filter_info omap_dma_info = {
.filter_fn = omap_dma_filter_fn,
};
Expand Down Expand Up @@ -1637,7 +1638,7 @@ static struct platform_driver omap_dma_driver = {
},
};

bool omap_dma_filter_fn(struct dma_chan *chan, void *param)
static bool omap_dma_filter_fn(struct dma_chan *chan, void *param)
{
if (chan->device->dev->driver == &omap_dma_driver.driver) {
struct omap_dmadev *od = to_omap_dma_dev(chan->device);
Expand Down
2 changes: 0 additions & 2 deletions include/linux/omap-dma.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __LINUX_OMAP_DMA_H
#define __LINUX_OMAP_DMA_H
#include <linux/omap-dmaengine.h>

/*
* Legacy OMAP DMA handling defines and functions
*
Expand Down
18 changes: 0 additions & 18 deletions include/linux/omap-dmaengine.h

This file was deleted.

0 comments on commit 9c71b9e

Please sign in to comment.