mfd: stm32-timers: Use dmaengine_desc_set_callback()
Subsystems (4)
PATCH v2 1/1 mfd: stm32-timers: 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.
---
change in v2
- Capitalize description at subject
--- drivers/mfd/stm32-timers.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/mfd/stm32-timers.c +1 -2
@@ -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)
Signature · 1 line
2.43.0
[email protected]
AI reviewSashiko has reviewed this patch and found no issues.
Quoted 10 lines
From: Frank Li <[email protected]>
Replace open-coded assignments to callback and
callback_paramfields of structdma_async_tx_descriptorwith a call to thedmaengine_desc_set_callback()helper.No functional change intended. Prepare make to struct
dma_async_tx_descriptorprivate to the DMA engine.Signed-off-by Frank Li <[email protected]>
Sashiko has reviewed this patch and found no issues.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
Re: (subset) [PATCH v2 1/1] mfd: stm32-timers: Use dmaengine_desc_set_callback()
In reply to [email protected]Quoted 8 lines · On Fri, 13 Nov 2026 12:57:12 -0500, [email protected] wrote:
Replace open-coded assignments to callback and
callback_paramfields of structdma_async_tx_descriptorwith a call to thedmaengine_desc_set_callback()helper.No functional change intended. Prepare make to struct
dma_async_tx_descriptorprivate to the DMA engine.[...]
Applied, thanks!
[1/1] mfd: stm32-timers: Use dmaengine_desc_set_callback()
commit: 20288e5e843ec16a9dfd9e6449f2f635dfc654ed
--
Lee Jones [李琼斯]