pinctrl: intel: Show the GPIO base calculation explicitly
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 8 Mar 2021 16:49:10 +0000 (18:49 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 8 Mar 2021 17:07:48 +0000 (19:07 +0200)
commit77e141266c8e72e4a586fe42eaab1b4b047655ed
tree2f8797da0b9758aeaf150028e47e5fbc49056b7c
parenta38fd8748464831584a19438cbb3082b5a2dab15
pinctrl: intel: Show the GPIO base calculation explicitly

During the split of intel_pinctrl_add_padgroups(), the _by_size() variant
missed the GPIO base calculations and hence made unable to retrieve proper
GPIO number.

Assign the gpio_base explicitly in _by_size() variant.

While at it, differentiate NOMAP case with the rest in _by_gpps() variant.

Fixes: 036e126c72eb ("pinctrl: intel: Split intel_pinctrl_add_padgroups() for better maintenance")
Reported-and-tested-by: Maximilian Luz <luzmaximilian@gmail.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/pinctrl/intel/pinctrl-intel.c