diff options
author | 2024-08-29 20:48:40 +0100 | |
---|---|---|
committer | 2024-09-02 10:13:59 +0200 | |
commit | 1325820dd085809645bdd89a2fd408a05b4a5492 (patch) | |
tree | fdb769ad90f2557c0f418158933480b563d70d09 /scripts/generate_rust_analyzer.py | |
parent | pinctrl: renesas: rzg2l: Introduce single macro for digital noise filter configuration (diff) | |
download | linux-rng-1325820dd085809645bdd89a2fd408a05b4a5492.tar.xz linux-rng-1325820dd085809645bdd89a2fd408a05b4a5492.zip |
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 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions