gpio: realtek-otto: fix GPIO line IRQ offset
authorSander Vanheule <sander@svanheule.net>
Thu, 28 Oct 2021 08:52:43 +0000 (10:52 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Nov 2021 18:17:04 +0000 (19:17 +0100)
commitdb651ace499c5c81408ce333cf065d1b4dd734d9
treeaad6fe22ca8394f82441527a844914b90a39ea51
parent01e189372d4871fb516966c145810f6262184c9f
gpio: realtek-otto: fix GPIO line IRQ offset

[ Upstream commit 585a07079909ba9061ddd88214c36653e1aef71a ]

The irqchip uses one domain for all GPIO lines, so the line offset
should be determined w.r.t. the first line of the first port, not the
first line of the triggered port.

Fixes: 0d82fb1127fb ("gpio: Add Realtek Otto GPIO support")
Signed-off-by: Sander Vanheule <sander@svanheule.net>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpio/gpio-realtek-otto.c