History

dmaengine: edma: make edma_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.

Arnd Bergmann committed 7 years ago

Commit d2bfe7b1 parent 9c71b9e2 files · +3 −31Browse files

Unified · Split

2 files
  1. drivers/dma/ti/edma.c +3 −2
  2. include/linux/edma.h +0 −29
drivers/dma/ti/edma.c+3−2
@@ -15,7 +15,6 @@ · 14 unmodified lines
1515
1616 #include <linux/dmaengine.h>
1717 #include <linux/dma-mapping.h>
18−#include <linux/edma.h>
1918 #include <linux/err.h>
2019 #include <linux/init.h>
2120 #include <linux/interrupt.h>
@@ -2185,6 +2184,8 @@ static struct dma_chan *of_edma_xlate(struct of_phandle_args *dma_spec, · 2163 unmodified lines
21852184 }
21862185 #endif
21872186
2187+static bool edma_filter_fn(struct dma_chan *chan, void *param);
2188+
21882189 static int edma_probe(struct platform_device *pdev)
21892190 {
21902191 struct edma_soc_info *info = pdev->dev.platform_data;
@@ -2524,7 +2525,7 @@ static struct platform_driver edma_tptc_driver = { · 333 unmodified lines
25242525 },
25252526 };
25262527
2527−bool edma_filter_fn(struct dma_chan *chan, void *param)
2528+static bool edma_filter_fn(struct dma_chan *chan, void *param)
25282529 {
25292530 bool match = false;
25302531
include/linux/edma.h+0−29
@@ -1,29 +0,0 @@
1−/*
2− * TI EDMA DMA engine driver
3− *
4− * Copyright 2012 Texas Instruments
5− *
6− * This program is free software; you can redistribute it and/or
7− * modify it under the terms of the GNU General Public License as
8− * published by the Free Software Foundation version 2.
9− *
10− * This program is distributed "as is" WITHOUT ANY WARRANTY of any
11− * kind, whether express or implied; without even the implied warranty
12− * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13− * GNU General Public License for more details.
14− */
15−#ifndef __LINUX_EDMA_H
16−#define __LINUX_EDMA_H
17−
18−struct dma_chan;
19−
20−#if defined(CONFIG_TI_EDMA) || defined(CONFIG_TI_EDMA_MODULE)
21−bool edma_filter_fn(struct dma_chan *, void *);
22−#else
23−static inline bool edma_filter_fn(struct dma_chan *chan, void *param)
24−{
25− return false;
26−}
27−#endif
28−
29−#endif

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t