diff options
Diffstat (limited to 'include/backlight.h')
-rw-r--r-- | include/backlight.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/backlight.h b/include/backlight.h index be905d0f47..4a11e15a4a 100644 --- a/include/backlight.h +++ b/include/backlight.h @@ -9,6 +9,7 @@ #define __CROS_EC_BACKLIGHT_H #include "common.h" +#include "gpio.h" /** * Interrupt handler for backlight. @@ -18,7 +19,7 @@ #ifdef CONFIG_BACKLIGHT_REQ_GPIO void backlight_interrupt(enum gpio_signal signal); #else -#define backlight_interrupt NULL -#endif +static inline void backlight_interrupt(enum gpio_signal signal) { } +#endif /* !CONFIG_BACKLIGHT_REQ_GPIO */ #endif /* __CROS_EC_BACKLIGHT_H */ |