All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] mfd: stm32-timers: use dmaengine_desc_set_callback()
@ 2026-11-02 17:46 Frank.Li
  2026-11-02 17:52 ` sashiko-bot
  0 siblings, 1 reply; 4+ messages in thread
From: Frank.Li @ 2026-11-02 17:46 UTC (permalink / raw)
  To: Fabrice Gasnier, Lee Jones, Maxime Coquelin, Alexandre Torgue,
	open list:MULTIFUNCTION DEVICES (MFD),
	moderated list:ARM/STM32 ARCHITECTURE,
	moderated list:ARM/STM32 ARCHITECTURE, open list
  Cc: imx, vkoul, Frank Li

From: Frank Li <Frank.Li@nxp.com>

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 <Frank.Li@nxp.com>
---
 drivers/mfd/stm32-timers.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/mfd/stm32-timers.c b/drivers/mfd/stm32-timers.c
index b3dbc02aaf798..4f344f2a5a26c 100644
--- a/drivers/mfd/stm32-timers.c
+++ b/drivers/mfd/stm32-timers.c
@@ -102,8 +102,7 @@ int stm32_timers_dma_burst_read(struct device *dev, u32 *buf,
 		goto unmap;
 	}
 
-	desc->callback = stm32_timers_dma_done;
-	desc->callback_param = dma;
+	dmaengine_desc_set_callback(desc, stm32_timers_dma_done, NULL, dma);
 	cookie = dmaengine_submit(desc);
 	ret = dma_submit_error(cookie);
 	if (ret)
-- 
2.43.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-03  8:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-02 17:46 [PATCH 1/1] mfd: stm32-timers: use dmaengine_desc_set_callback() Frank.Li
2026-11-02 17:52 ` sashiko-bot
2026-11-02 20:48   ` Frank Li
2026-11-03  8:59   ` Lee Jones

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.