diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/keyboard_backlight.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/keyboard_backlight.c b/common/keyboard_backlight.c index 694ac77446..0091f38ba6 100644 --- a/common/keyboard_backlight.c +++ b/common/keyboard_backlight.c @@ -5,6 +5,7 @@ #include "console.h" #include "ec_commands.h" +#include "gpio.h" #include "hooks.h" #include "host_command.h" #include "keyboard_backlight.h" @@ -56,6 +57,9 @@ int kblight_get(void) int kblight_enable(int enable) { +#ifdef GPIO_EN_KEYBOARD_BACKLIGHT + gpio_set_level(GPIO_EN_KEYBOARD_BACKLIGHT, enable); +#endif if (!kblight.drv || !kblight.drv->enable) return -1; return kblight.drv->enable(enable); |