mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-11-08 18:42:53 +00:00
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 | ||