]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
pinctrl: renesas: rzg2l: Move pinconf_to_config_argument() call outside of switch...
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Thu, 29 Aug 2024 19:48:40 +0000 (20:48 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 2 Sep 2024 08:13:59 +0000 (10:13 +0200)
commit1325820dd085809645bdd89a2fd408a05b4a5492
treefdb769ad90f2557c0f418158933480b563d70d09
parentbefcded23454825ca2cc4c24626b68c75fcb1528
pinctrl: renesas: rzg2l: Move pinconf_to_config_argument() call outside of switch cases

Refactor the `rzg2l_pinctrl_pinconf_set()` function by moving the call to
`arg = pinconf_to_config_argument(_configs[i])` to the beginning of the
loop. Previously, this call was redundantly made in most cases within the
switch statement.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/20240829194841.84398-3-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/pinctrl/renesas/pinctrl-rzg2l.c