diff options
author | Andrew McRae <amcrae@google.com> | 2020-09-14 14:41:37 +1000 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-09-16 04:09:17 +0000 |
commit | 027feac1bad150caea6d70c5f6efdbdc71328c14 (patch) | |
tree | 3bd55b27ddfe6508c86a94e0b38d3e9336d2f61b /board/dooly | |
parent | a872da9e55b44fcaa0f174a63cdee553e2d1a029 (diff) | |
download | chrome-ec-027feac1bad150caea6d70c5f6efdbdc71328c14.tar.gz |
Dooly: 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.
Copied from puff.
BUG=b:168189235
TEST=Tested on Puff.
BRANCH=none
Signed-off-by: Andrew McRae <amcrae@google.com>
Change-Id: I60cb58b76653a0ac8dbcc2deb55e8c02b2af75e7
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2407623
Tested-by: Andrew McRae <amcrae@chromium.org>
Reviewed-by: Nikolai Artemiev <nartemiev@google.com>
Commit-Queue: Andrew McRae <amcrae@chromium.org>
Diffstat (limited to 'board/dooly')
-rw-r--r-- | board/dooly/led.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board/dooly/led.c b/board/dooly/led.c index 732ab88284..2c910bcbdb 100644 --- a/board/dooly/led.c +++ b/board/dooly/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(); } } |