dma: add dma_get_any_slave_channel(), for use in of_xlate()
authorStephen Warren <[email protected]>
Tue, 26 Nov 2013 19:40:51 +0000 (12:40 -0700)
committerVinod Koul <[email protected]>
Tue, 10 Dec 2013 12:18:33 +0000 (17:48 +0530)
commit8010dad55a0ab0e829f3733854e5235eef4e2734
tree1a853cb6960763860227891b1324ab9467d6e8c9
parent6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae
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]>
drivers/dma/dmaengine.c
drivers/dma/mmp_pdma.c
include/linux/dmaengine.h