diff options
author | Andrew McRae <amcrae@google.com> | 2020-09-11 15:24:42 +1000 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-09-14 02:11:15 +0000 |
commit | 2698b3a0c630bb34d6c7e9c9f70f5dc7ce1d379a (patch) | |
tree | aacd0eb331f44ee557fa198e79a8bc29d0ab8d47 | |
parent | 100d6ae9ec1f637f61b414a14c4c9299ce341e09 (diff) | |
download | chrome-ec-2698b3a0c630bb34d6c7e9c9f70f5dc7ce1d379a.tar.gz |
Puff: Set correct LED state when alert turned off
When the LED alert is turned off, set the correct LED state
by using the hook functions.
BUG=b:168189235
TEST=Check LED state during multiple power cycles
when powering with type-C adapter.
BRANCH=none
Signed-off-by: Andrew McRae <amcrae@google.com>
Change-Id: I0c81878cffb7fc89902e0364448b958a755d8de7
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2404909
Tested-by: Andrew McRae <amcrae@chromium.org>
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
Commit-Queue: Andrew McRae <amcrae@chromium.org>
-rw-r--r-- | board/puff/led.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board/puff/led.c b/board/puff/led.c index fe6abf6c0e..ba87f05460 100644 --- a/board/puff/led.c +++ b/board/puff/led.c @@ -201,9 +201,9 @@ void led_alert(int enable) if (chipset_in_state(CHIPSET_STATE_ON)) led_resume(); else if (chipset_in_state(CHIPSET_STATE_SUSPEND)) - led_suspend(); + led_suspend_hook(); else if (chipset_in_state(CHIPSET_STATE_ANY_OFF)) - led_shutdown(); + led_shutdown_hook(); } } |