Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dmaengine: iop-adma: convert callback to helper function

This is in preperation of moving to a callback that provides results to the
callback for the transaction. The conversion will maintain current behavior
and the driver must convert to new callback mechanism at a later time in
order to receive results.

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>

authored by

Dave Jiang and committed by
Vinod Koul
db89e3c8 63992864

+1 -2
+1 -2
drivers/dma/iop-adma.c
··· 71 71 /* call the callback (must not sleep or submit new 72 72 * operations to this channel) 73 73 */ 74 - if (tx->callback) 75 - tx->callback(tx->callback_param); 74 + dmaengine_desc_get_callback_invoke(tx, NULL); 76 75 77 76 dma_descriptor_unmap(tx); 78 77 if (desc->group_head)