dmaengine: axi-dmac: wrap channel parameter adjust into function
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Tue, 25 Aug 2020 15:19:49 +0000 (18:19 +0300)
committerVinod Koul <vkoul@kernel.org>
Tue, 25 Aug 2020 15:37:11 +0000 (21:07 +0530)
commit3061a65c1b3dbcad0d6c03e4edc606698cfa05d2
tree38423bc1b13782dcc31c38466722c2c35049a9cd
parent06b6e88c7ecf48e666bdd88615fa46155c8cb8f1
dmaengine: axi-dmac: wrap channel parameter adjust into function

The channel parameters (which are read from the device-tree) are adjusted
for the DMAEngine framework in the axi_dmac_parse_chan_dt() function, after
they are read from the device-tree.

When we want to read these from registers, we will need to use the same
logic, so this change splits the logic into a separate function.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Link: https://lore.kernel.org/r/20200825151950.57605-6-alexandru.ardelean@analog.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/dma-axi-dmac.c