]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: rcar-dmac: Add for_each_rcar_dmac_chan() helper
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 28 Jan 2021 08:44:53 +0000 (09:44 +0100)
committerVinod Koul <vkoul@kernel.org>
Mon, 1 Feb 2021 05:48:59 +0000 (11:18 +0530)
commite175c93f515699371737a82c26d8201d181c042c
tree1f85465b0dae956f768b4332a8f21df4629faec5
parent93ed07aa47d551ab8133dba51de0ceb99c271ded
dmaengine: rcar-dmac: Add for_each_rcar_dmac_chan() helper

Add a 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>
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Tested-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Link: https://lore.kernel.org/r/20210128084455.2237256-3-geert+renesas@glider.be
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/sh/rcar-dmac.c