dmaengine: imx-sdma: add sdma_transfer_init to decrease code overlap
authorRobin Gong <yibin.gong@nxp.com>
Tue, 19 Jun 2018 16:57:03 +0000 (00:57 +0800)
committerVinod Koul <vkoul@kernel.org>
Mon, 2 Jul 2018 12:54:47 +0000 (18:24 +0530)
commit21420841a554dae8a193cd3454ba91d913cfc320
tree1140a0c39774cfe8449b4f61fef97fa92bee2e1a
parent36e8d3b133e16eb2aee8a53b9ed5cd34821f6123
dmaengine: imx-sdma: add sdma_transfer_init to decrease code overlap

There are lot of codes overlap between prep_sg and prep_cyclic function.
Add sdma_transfer_init() function to elimated the code overlap.

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