From 2698b3a0c630bb34d6c7e9c9f70f5dc7ce1d379a Mon Sep 17 00:00:00 2001 From: Andrew McRae Date: Fri, 11 Sep 2020 15:24:42 +1000 Subject: 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 Change-Id: I0c81878cffb7fc89902e0364448b958a755d8de7 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2404909 Tested-by: Andrew McRae Reviewed-by: Peter Marheine Commit-Queue: Andrew McRae --- board/puff/led.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'board/puff') 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(); } } -- cgit v1.2.1