OSDN Git Service

gpio: realtek-otto: fix GPIO line IRQ offset
authorSander Vanheule <sander@svanheule.net>
Thu, 28 Oct 2021 08:52:43 +0000 (10:52 +0200)
committerBartosz Golaszewski <brgl@bgdev.pl>
Sat, 30 Oct 2021 14:58:58 +0000 (16:58 +0200)
commit585a07079909ba9061ddd88214c36653e1aef71a
tree91c8ce8d6923c8f37e2f9959ce0b5d5b04cd7160
parentdd1695a221e0eb60e345095deca28a45c3284428
gpio: realtek-otto: fix GPIO line IRQ offset

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>
drivers/gpio/gpio-realtek-otto.c