]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: xilinx_dma: commonize DMA copy size calculation
authorAndrea Merello <andrea.merello@gmail.com>
Tue, 20 Nov 2018 15:31:45 +0000 (16:31 +0100)
committerVinod Koul <vkoul@kernel.org>
Mon, 7 Jan 2019 04:23:11 +0000 (09:53 +0530)
commit806245a8f0227cb95cc7d4cd6f50bcac38001d39
treeff398f11f99cc86cd14212f6f52332ce11104ba2
parentf9bb4b753eb00c02014e4467a28609f4f6ac7f88
dmaengine: xilinx_dma: commonize DMA copy size calculation

This patch removes a bit of duplicated code by introducing a new
function that implements calculations for DMA copy size, and
prepares for changes to the copy size calculation that will
happen in following patches.

Suggested-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Andrea Merello <andrea.merello@gmail.com>
Reviewed-by: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/xilinx/xilinx_dma.c