Skip to contentSkip to conversation

powerpc/512x: use dmaengine_desc_set_callback()

PATCH New [email protected] 1 participant 1 message Nov 2

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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.

---
 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
arch/powerpc/platforms/512x/mpc512x_lpbfifo.c +1 -2
index f251e0f682620..0c1a4599e8aa3 100644
@@ -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