diff options
author | Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> | 2024-08-29 22:48:40 +0300 |
---|---|---|
committer | Geert Uytterhoeven <geert+renesas@glider.be> | 2024-09-02 11:13:59 +0300 |
commit | 1325820dd085809645bdd89a2fd408a05b4a5492 (patch) | |
tree | fdb769ad90f2557c0f418158933480b563d70d09 /drivers/pinctrl/meson/pinctrl-meson8-pmx.c | |
parent | befcded23454825ca2cc4c24626b68c75fcb1528 (diff) | |
download | linux-1325820dd085809645bdd89a2fd408a05b4a5492.tar.xz |
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>
Diffstat (limited to 'drivers/pinctrl/meson/pinctrl-meson8-pmx.c')
0 files changed, 0 insertions, 0 deletions