nlm: Ensure callback code also checks that the files match
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / include / linux / edma.h
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