pinctrl: Move for_each_maps() to namespace and hide iterator inside
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 11 Nov 2022 12:00:48 +0000 (14:00 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 14 Nov 2022 13:19:33 +0000 (14:19 +0100)
commit06de519345f4af5b7ee48aaa30228fe5ac5de233
tree4eac0e369d678fb46a3f8e93c4ff8ce6020b4263
parent5a0047360743695ecfe4ca33300222ddd39c4612
pinctrl: Move for_each_maps() to namespace and hide iterator inside

First of all, while for_each_maps() is private to pin control subsystem
it's still better to have it put into a namespace.

Besides that, users are not relying on iterator variable, so hide it
inside for-loop.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20221111120048.42968-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/core.c
drivers/pinctrl/core.h