powerpc/512x: use dmaengine_desc_set_callback()
Subsystems (3)
PATCH 1/1 powerpc/512x: use dmaengine_desc_set_callback()
From: Frank Li <[email protected]>
Replace open-coded assignments to callback and callback_param fields of struct dma_async_tx_descriptor with a call to the dmaengine_desc_set_callback() helper.
No functional change intended. Prepare make to struct dma_async_tx_descriptor private to the DMA engine.
Signed-off-by Frank Li <[email protected]>
--- arch/powerpc/platforms/512x/mpc512x_lpbfifo.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
arch/powerpc/platforms/512x/mpc512x_lpbfifo.c +1 -2
@@ -260,8 +260,7 @@ static int mpc512x_lpbfifo_kick(void) ret = -ENOSPC ; goto err_dma_prep; } - dma_tx->callback = mpc512x_lpbfifo_callback; - dma_tx->callback_param =NULL ; +dmaengine_desc_set_callback (dma_tx, mpc512x_lpbfifo_callback,NULL ,NULL );/* 3. Prepare FIFO */ out_be32(&lpbfifo.regs->enable,
Signature · 1 line
2.43.0