提交 81141bac 编写于 作者: D Dave Jiang 提交者: Vinod Koul

dmaengine: mmp_tdma: 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: NDave Jiang <dave.jiang@intel.com>
Reviewed-by: NLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: NVinod Koul <vinod.koul@intel.com>
上级 9c1e511c
...@@ -349,9 +349,7 @@ static void dma_do_tasklet(unsigned long data) ...@@ -349,9 +349,7 @@ static void dma_do_tasklet(unsigned long data)
{ {
struct mmp_tdma_chan *tdmac = (struct mmp_tdma_chan *)data; struct mmp_tdma_chan *tdmac = (struct mmp_tdma_chan *)data;
if (tdmac->desc.callback) dmaengine_desc_get_callback_invoke(&tdmac->desc, NULL);
tdmac->desc.callback(tdmac->desc.callback_param);
} }
static void mmp_tdma_free_descriptor(struct mmp_tdma_chan *tdmac) static void mmp_tdma_free_descriptor(struct mmp_tdma_chan *tdmac)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册