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

dmaengine: imx-dma: 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
be5af285 af1a5a51

+1 -3
+1 -3
drivers/dma/imx-dma.c
··· 663 663 out: 664 664 spin_unlock_irqrestore(&imxdma->lock, flags); 665 665 666 - if (desc->desc.callback) 667 - desc->desc.callback(desc->desc.callback_param); 668 - 666 + dmaengine_desc_get_callback_invoke(&desc->desc, NULL); 669 667 } 670 668 671 669 static int imxdma_terminate_all(struct dma_chan *chan)