]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dmaengine: core: Move and merge the code paths using private_candidate
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Mon, 14 Dec 2015 20:47:39 +0000 (22:47 +0200)
committerVinod Koul <vinod.koul@intel.com>
Fri, 18 Dec 2015 05:47:26 +0000 (11:17 +0530)
commit7bd903c5ca47fde5ad52370a47776491813c772e
treeb0d2d1a9be3a6504a6762938ba10839e02fb2b2b
parent26b64256e0c4573f3668ac8329a1266ebb9d6120
dmaengine: core: Move and merge the code paths using private_candidate

Channel matching with private_candidate() is used in two paths, the error
checking is slightly different in them and they are duplicating code also.
Move the code under find_candidate() to provide consistent execution and
going to allow us to reuse this mode of channel lookup later.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/dmaengine.c