diff options
author | Duncan Laurie <dlaurie@chromium.org> | 2012-07-17 16:21:34 -0700 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-07-19 09:59:13 -0700 |
commit | a788fffd24f7c9e6a718966754bf95ab0385fbe8 (patch) | |
tree | d7659f0cf0f79b6f94275467a8994a9614112878 /chip/lm4/pwm.c | |
parent | c51466d0d07aa065ae8eaeb9f271e8838cddd534 (diff) | |
download | chrome-ec-a788fffd24f7c9e6a718966754bf95ab0385fbe8.tar.gz |
Disable keyboard backlight on suspend entry
In theory this should be done by a kernel driver,
but there is already a suspend hook so it is easy
to have the EC turn off the backlight if it is
not done by the host.
BUG=none
TEST=manual
1) boot Link device
2) log in and run 'powerd_suspend'
3) observe that keyboard backlight is turned off
Change-Id: I10b83505d681f5b6d9cb32c1bef62dc21dd038e1
Signed-off-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/27721
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'chip/lm4/pwm.c')
-rw-r--r-- | chip/lm4/pwm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chip/lm4/pwm.c b/chip/lm4/pwm.c index 29b593034e..b8894cf032 100644 --- a/chip/lm4/pwm.c +++ b/chip/lm4/pwm.c @@ -389,6 +389,7 @@ DECLARE_HOOK(HOOK_CHIPSET_RESUME, pwm_resume, HOOK_PRIO_DEFAULT); static int pwm_suspend(void) { pwm_enable_fan(0); + pwm_set_keyboard_backlight(0); return EC_SUCCESS; } DECLARE_HOOK(HOOK_CHIPSET_SUSPEND, pwm_suspend, HOOK_PRIO_DEFAULT); |