]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita6af67a79b9c9384f72e38f19eb47493aedd97b6
tree2f8797da0b9758aeaf150028e47e5fbc49056b7c
parent219c9076286fd92026e818ab1375558e5b20649f
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: 58b129568c66 ("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