PCI: endpoint: pci-epf-test: use dmaengine_desc_set_callback()
Subsystems (3)
PATCH 1/1 PCI: endpoint: pci-epf-test: 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 calls to the dmaengine_desc_set_callback() helper.
No functional change intended. Prepare to make struct dma_async_tx_descriptor private to the DMA engine.
--- drivers/pci/endpoint/functions/pci-epf-test.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/pci/endpoint/functions/pci-epf-test.c +1 -2
@@ -197,8 +197,7 @@ static int pci_epf_test_data_transfer(struct pci_epf_test *epf_test,reinit_completion (&epf_test->transfer_complete); epf_test->transfer_chan = chan; - tx->callback = pci_epf_test_dma_callback; - tx->callback_param = epf_test; +dmaengine_desc_set_callback (tx, pci_epf_test_dma_callback,NULL , epf_test); epf_test->transfer_cookie =dmaengine_submit (tx); ret =dma_submit_error (epf_test->transfer_cookie);
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 calls to thedmaengine_desc_set_callback()helper.No functional change intended. Prepare to make 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
Quoted 8 lines · On Mon, 02 Nov 2026 14:27:19 -0500, [email protected] wrote:
Replace open-coded assignments to callback and
callback_paramfields of structdma_async_tx_descriptorwith calls to thedmaengine_desc_set_callback()helper.No functional change intended. Prepare to make struct
dma_async_tx_descriptorprivate to the DMA engine.[...]
Applied, thanks!
[1/1] PCI: endpoint: pci-epf-test: use dmaengine_desc_set_callback()
commit: c101fe42450cce2956f5784d81152bbb44846279
Best regards,
Signature · 1 line
மணிவண்ணன் சதாசிவம்