aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorStephen Warren <[email protected]>2013-11-26 12:40:51 -0700
committerVinod Koul <[email protected]>2013-12-10 17:48:33 +0530
commit8010dad55a0ab0e829f3733854e5235eef4e2734 (patch)
tree1a853cb6960763860227891b1324ab9467d6e8c9 /include/linux
parent6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae (diff)
dma: add dma_get_any_slave_channel(), for use in of_xlate()
mmp_pdma.c implements a custom of_xlate() function that is 95% identical to what Tegra will need. Create a function to implement the common part, so everyone doesn't just cut/paste the implementation. Cc: Dan Williams <[email protected]> Cc: Vinod Koul <[email protected]> Cc: Lars-Peter Clausen <[email protected]> Cc: [email protected] Cc: [email protected] Signed-off-by: Stephen Warren <[email protected]> Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/dmaengine.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h
index 41cf0c399288..09ef23ee8bce 100644
--- a/include/linux/dmaengine.h
+++ b/include/linux/dmaengine.h
@@ -1079,6 +1079,7 @@ int dma_async_device_register(struct dma_device *device);
void dma_async_device_unregister(struct dma_device *device);
void dma_run_dependencies(struct dma_async_tx_descriptor *tx);
struct dma_chan *dma_get_slave_channel(struct dma_chan *chan);
+struct dma_chan *dma_get_any_slave_channel(struct dma_device *device);
struct dma_chan *net_dma_find_channel(void);
#define dma_request_channel(mask, x, y) __dma_request_channel(&(mask), x, y)
#define dma_request_slave_channel_compat(mask, x, y, dev, name) \