linux/drivers/pinctrl/stm32
Andy Shevchenko 8b3dd882bf pinctrl: stm32: Unshadow np variable in stm32_pctl_probe()
The np variable is used globally for stm32_pctl_probe() and in one of
its code branches. cppcheck is not happy with that:

  pinctrl-stm32.c:1530:23: warning: Local variable 'np' shadows outer variable [shadowVariable]

Instead of simply renaming one of the variables convert some code to
use a device pointer directly.

Fixes: bb949ed9b1 ("pinctrl: stm32: Switch to use for_each_gpiochip_node() helper")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Fabien Dessenne <fabien.dessenne@foss.st.com>
Link: https://lore.kernel.org/r/20220507102257.26414-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2022-05-14 01:13:42 +02:00
..
Kconfig pinctrl: stm32: Add STM32MP135 SoC support 2021-08-10 14:45:27 +02:00
Makefile pinctrl: stm32: Add STM32MP135 SoC support 2021-08-10 14:45:27 +02:00
pinctrl-stm32.c pinctrl: stm32: Unshadow np variable in stm32_pctl_probe() 2022-05-14 01:13:42 +02:00
pinctrl-stm32.h pinctrl: stm32: prevent the use of the secure protected pins 2022-05-05 00:04:04 +02:00
pinctrl-stm32f429.c pinctrl: stm32: Fix copyright 2017-12-02 16:23:08 +01:00
pinctrl-stm32f469.c pinctrl: stm32: Fix copyright 2017-12-02 16:23:08 +01:00
pinctrl-stm32f746.c pinctrl: stm32: Fix copyright 2017-12-02 16:23:08 +01:00
pinctrl-stm32f769.c pinctrl: stm32: add STM32F769 MCU support 2018-01-22 09:28:08 +01:00
pinctrl-stm32h743.c pinctrl: stm32: Fix copyright 2017-12-02 16:23:08 +01:00
pinctrl-stm32mp135.c pinctrl: stm32: prevent the use of the secure protected pins 2022-05-05 00:04:04 +02:00
pinctrl-stm32mp157.c pinctrl: stm32: improve bank clocks management 2022-05-01 23:25:58 +02:00