pinctrl: cy8c95x0: embed iterator to the for-loop
authorAndy Shevchenko <andy.shevchenko@gmail.com>
Sun, 10 Nov 2024 20:59:45 +0000 (22:59 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 13 Nov 2024 13:18:06 +0000 (14:18 +0100)
commitab899a0ec3cb0748f67ca66a14615dadfa6304e7
tree3f74b79263451884a35a14929fd75112e9185c82
parente1b47291bdcf0416337a535a52786fb55810f00d
pinctrl: cy8c95x0: embed iterator to the for-loop

When we iterate through nports the iterator variable is effectively
being not used outside of the loop. Make it clear by moving its definition
into the for-loop. This makes code cleaner as well.

Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/20241110210040.18918-6-andy.shevchenko@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-cy8c95x0.c