summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorTing Shen <phoenixshen@google.com>2021-06-08 18:12:39 +0800
committerCommit Bot <commit-bot@chromium.org>2021-06-08 13:24:45 +0000
commit5db0a73bc12a16a29028bdac87a5e5602f03a702 (patch)
tree09b6c399ebde329163d18202922bc33395560aeb /common
parent3e0527c720dd6b407a0e1431fe74ca033f669cf6 (diff)
downloadchrome-ec-5db0a73bc12a16a29028bdac87a5e5602f03a702.tar.gz
led_onoff_states: fix typo
Changed led_bat_state_table to led_pwr_state_table. The led_update_power should not rely on any info from led_bat_state_table. BUG=none TEST=no "Undefined LED behavior for power state 4" error message in s5/g3 BRANCH=main Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: I360c3af3f269b89ed6767737c23ec3abb1173041 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2946504 Tested-by: Ting Shen <phoenixshen@chromium.org> Auto-Submit: Ting Shen <phoenixshen@chromium.org> Reviewed-by: Eric Yilun Lin <yllin@google.com> Commit-Queue: Eric Yilun Lin <yllin@google.com>
Diffstat (limited to 'common')
-rw-r--r--common/led_onoff_states.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/led_onoff_states.c b/common/led_onoff_states.c
index 595e8ab10d..f5db121de0 100644
--- a/common/led_onoff_states.c
+++ b/common/led_onoff_states.c
@@ -218,7 +218,7 @@ static void led_update_power(void)
* OFF not defined, as indicated by no specified phase 0 time.
*/
if (desired_state == PWR_LED_STATE_OFF_LOW_POWER &&
- led_bat_state_table[desired_state][LED_PHASE_0].time == 0)
+ led_pwr_state_table[desired_state][LED_PHASE_0].time == 0)
desired_state = PWR_LED_STATE_OFF;
/* State is changing */