summaryrefslogtreecommitdiff
path: root/include/gpio_list.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/gpio_list.h')
-rw-r--r--include/gpio_list.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/gpio_list.h b/include/gpio_list.h
index 37d49a6f97..22025b25d8 100644
--- a/include/gpio_list.h
+++ b/include/gpio_list.h
@@ -111,8 +111,9 @@ const int ioex_ih_count = ARRAY_SIZE(ioex_irq_handlers);
* IOEX's declaration in the gpio.inc
* file.
*/
-#define IOEX_INT(name, expin, flags, handler) \
- BUILD_ASSERT(IOEX_##name < ARRAY_SIZE(ioex_irq_handlers));
+#define IOEX_INT(name, expin, flags, handler) \
+ BUILD_ASSERT(IOEX_##name - IOEX_SIGNAL_START \
+ < ARRAY_SIZE(ioex_irq_handlers));
#include "gpio.wrap"
#define IOEX(name, expin, flags) expin