gpio: brcmstb: Use dynamic GPIO base numbers
authorPhil Elwell <phil@raspberrypi.com>
Fri, 6 Oct 2023 15:30:35 +0000 (16:30 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:35:04 +0000 (11:35 +0000)
commit772b5fa61d827d54a9d0de08b449065194a0aa72
tree447ee75a56346d3a53df6d1ccffd2442f616085a
parente8a2d6b386ccdebda603005682c76c47f0e7e4fa
gpio: brcmstb: Use dynamic GPIO base numbers

Forcing a gpiochip to have a fixed base number now leads to a warning
message. Remove the need to do so by calculating hwirq numbers based
on bank numbers.

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Fixes: 3b0213d56eb7 ("gpio: Add GPIO support for Broadcom STB SoCs")
drivers/gpio/gpio-brcmstb.c