b67210cc21
Consider the GPIO controller offset (from "gpio-ranges") to compute the
maximum GPIO line number.
This fixes an issue where gpio-ranges uses a non-null offset.
e.g.: gpio-ranges = <&pinctrl 6 86 10>
In that case the last valid GPIO line is not 9 but 15 (6 + 10 - 1)
Cc: stable@vger.kernel.org
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
pinctrl-stm32.c | ||
pinctrl-stm32.h | ||
pinctrl-stm32f429.c | ||
pinctrl-stm32f469.c | ||
pinctrl-stm32f746.c | ||
pinctrl-stm32f769.c | ||
pinctrl-stm32h743.c | ||
pinctrl-stm32mp135.c | ||
pinctrl-stm32mp157.c |