dmaengine: rcar-dmac: Add for_each_rcar_dmac_chan() helper

Add and helper macro for iterating over all DMAC channels, taking into
account the channel mask.  Use it where appropriate, to simplify code.

Restore "reverse Christmas tree" order of local variables while adding a
new variable.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20210125142431.1049668-3-geert+renesas@glider.be
1 file changed