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: NSascha Hauer <s.hauer@pengutronix.de> Signed-off-by: NRobin Gong <yibin.gong@nxp.com> Reviewed-by: NSascha Hauer <s.hauer@pengutronix.de> Tested-by: NLucas Stach <l.stach@pengutronix.de> Signed-off-by: NVinod Koul <vkoul@kernel.org>
Showing
想要评论请 注册 或 登录