dma: add dma_get_any_slave_channel(), for use in of_xlate()
authorStephen Warren <swarren@nvidia.com>
Tue, 26 Nov 2013 19:40:51 +0000 (12:40 -0700)
committerVinod Koul <vinod.koul@intel.com>
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 <dan.j.williams@intel.com>
Cc: Vinod Koul <vinod.koul@intel.com>
Cc: Lars-Peter Clausen <lars@metafoo.de>
Cc: dmaengine@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/dmaengine.c
drivers/dma/mmp_pdma.c
include/linux/dmaengine.h