dmaengine: xilinx: xdma: Prepare the introduction of interleaved DMA transfers
authorJan Kuliga <jankul@alatek.krakow.pl>
Mon, 18 Dec 2023 11:39:42 +0000 (12:39 +0100)
committerVinod Koul <vkoul@kernel.org>
Fri, 22 Dec 2023 06:49:41 +0000 (12:19 +0530)
commit3e184e64c2e5145e51dc57872b0a64e3a6736888
treebba481bb614071d9e3d5689c21da9d7b9dfa6c9d
parentfd0e1d83a813d48285d39eae0053b38828cf7e1a
dmaengine: xilinx: xdma: Prepare the introduction of interleaved DMA transfers

Make generic code generic. As descriptor-filling logic stays the same
regardless of a dmaengine's type of transfer, it is possible to write
the descriptor-filling function in a generic way, so that it can be used
for every single type of transfer preparation callback.

Signed-off-by: Jan Kuliga <jankul@alatek.krakow.pl>
Link: https://lore.kernel.org/r/20231218113943.9099-8-jankul@alatek.krakow.pl
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/xilinx/xdma.c