pinctrl: npcm7xx: Switch to use for_each_gpiochip_node() helper
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 1 Apr 2022 10:35:59 +0000 (13:35 +0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 8 Apr 2022 15:41:04 +0000 (18:41 +0300)
commit0173ce55e50800a1a59dddcb972fe459cff0fee4
tree87f10f2b3c65ee0465dae1e22c1a89ac5dbe3dab
parent5e455dd93397b3cad0b6767654d29919d28d3a89
pinctrl: npcm7xx: Switch to use for_each_gpiochip_node() helper

Switch the code to use for_each_gpiochip_node() helper.

While at it, in order to avoid additional churn in the future,
do the following:
- use a temporary variable for struct device pointer to shorten a few lines
- get rid of a temporary variable for vIRQ number, assign it directly
- switch to fwnode APIs where it makes sense

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c