dmaengine: Add helper function to prep for error reporting
authorDave Jiang <dave.jiang@intel.com>
Wed, 20 Jul 2016 20:10:31 +0000 (13:10 -0700)
committerVinod Koul <vinod.koul@intel.com>
Mon, 8 Aug 2016 02:41:37 +0000 (08:11 +0530)
commitf083f557186d77de5f14bf90aec1bfe2503cf513
tree19dd371b7dd76dc3a29c953168453a44cc35ed03
parent29b4817d4018df78086157ea3a55c1d9424a7cfc
dmaengine: Add helper function to prep for error reporting

Dmaengine does not provide a way to pass back the result from a DMA
transaction through the callback function. We are adding dmaengine
helper function in order to prep for a mechanism that allow result
status and other information through the callback. The initial conversion
will make the existing driver use these new helper functions but retain
the original behavior of the code. However, the helper functions paves
a way towards adding the result parameter through callback.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Reviewed-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/dmaengine.h