diff options
Diffstat (limited to 'firmware/target/arm/imx31/gpio-imx31.h')
-rw-r--r-- | firmware/target/arm/imx31/gpio-imx31.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/firmware/target/arm/imx31/gpio-imx31.h b/firmware/target/arm/imx31/gpio-imx31.h index 86ca964f94..e02896f4c3 100644 --- a/firmware/target/arm/imx31/gpio-imx31.h +++ b/firmware/target/arm/imx31/gpio-imx31.h | |||
@@ -166,11 +166,12 @@ struct gpio_event | |||
166 | { \ | 166 | { \ |
167 | static const struct gpio_event __tbl[] = { | 167 | static const struct gpio_event __tbl[] = { |
168 | 168 | ||
169 | #define GPIO_EVENT_VECTOR_CB(__name) void __name##_EVENT_CB(void) | ||
170 | |||
169 | #define GPIO_EVENT_VECTOR(__name, __sense) \ | 171 | #define GPIO_EVENT_VECTOR(__name, __sense) \ |
170 | { .id = (__name##_ID), \ | 172 | { .id = (__name##_ID), \ |
171 | .sense = (__sense), \ | 173 | .sense = (__sense), \ |
172 | .callback = ({ void __name##_EVENT_CB(void); \ | 174 | .callback = (__name##_EVENT_CB) }, |
173 | __name##_EVENT_CB; }) }, | ||
174 | 175 | ||
175 | #define GPIO_VECTOR_TBL_END() \ | 176 | #define GPIO_VECTOR_TBL_END() \ |
176 | }; \ | 177 | }; \ |