pinctrl: renesas: rzg2l: Move arg and index in the main function block
authorClaudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Thu, 7 Dec 2023 07:06:52 +0000 (09:06 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 13 Dec 2023 18:37:57 +0000 (19:37 +0100)
commit906b545b16594e45f2d3433028dcf649d2c05ebb
tree4bf61ec980a56f75d6705073b21543137186b8ce
parentdc99d4c8ac46bf533b9519a53795c4cd6ff0fa39
pinctrl: renesas: rzg2l: Move arg and index in the main function block

Move arg and index in the main block of the function as they are used by
more than one case block of switch-case (3 out of 4 for arg, 2 out of 4
for index). In this way some lines of code are removed.

Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20231207070700.4156557-4-claudiu.beznea.uj@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/pinctrl/renesas/pinctrl-rzg2l.c