Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 50e32641 authored by Andrea Merello's avatar Andrea Merello Committed by Greg Kroah-Hartman
Browse files

dmaengine: xilinx_dma: commonize DMA copy size calculation



[ Upstream commit 616f0f81d857e248a72b5af45ab185196556ae2e ]

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: default avatarVinod Koul <vkoul@kernel.org>
Signed-off-by: default avatarAndrea Merello <andrea.merello@gmail.com>
Reviewed-by: default avatarRadhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
Stable-dep-of: 596b53ccc36a ("dmaengine: xilinx_dma: call of_node_put() when breaking out of for_each_child_of_node()")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 7317326f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment