dmaengine: imx-sdma: factor out a struct sdma_desc from struct sdma_channel
authorSascha Hauer <s.hauer@pengutronix.de>
Tue, 19 Jun 2018 16:56:59 +0000 (00:56 +0800)
committerVinod Koul <vkoul@kernel.org>
Mon, 2 Jul 2018 12:54:47 +0000 (18:24 +0530)
commit76c33d27073e29bd98d1c975265e1cbe0889fc53
tree8d486cb3cafb84539afdbc220d6dc932d98d895b
parentce397d215ccd07b8ae3f71db689aedb85d56ab40
dmaengine: imx-sdma: factor out a struct sdma_desc from struct sdma_channel

This is a preparation step to make the adding of virt-dma easier.
We create a struct sdma_desc, move some fields from struct sdma_channel
there and add a pointer from the former to the latter. For now we
allocate the data statically in struct sdma_channel, but with
virt-dma support it will be dynamically allocated.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Reviewed-by: Sascha Hauer <s.hauer@pengutronix.de>
Tested-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/imx-sdma.c