summaryrefslogtreecommitdiff
path: root/chip/npcx/gpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/npcx/gpio.c')
-rw-r--r--chip/npcx/gpio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/chip/npcx/gpio.c b/chip/npcx/gpio.c
index 8afd7d05fb..0b9b4b664f 100644
--- a/chip/npcx/gpio.c
+++ b/chip/npcx/gpio.c
@@ -350,9 +350,9 @@ void gpio_execute_isr(uint8_t port, uint8_t mask)
int i;
const struct gpio_info *g = gpio_list;
/* Find GPIOs and execute interrupt service routine */
- for (i = 0; i < GPIO_COUNT; i++, g++) {
- if (port == g->port && mask == g->mask && g->irq_handler) {
- g->irq_handler(i);
+ for (i = 0; i < GPIO_IH_COUNT; i++, g++) {
+ if (port == g->port && mask == g->mask) {
+ gpio_irq_handlers[i](i);
return;
}
}