diff options
author | Jian-Jia Su <jjsu@chromium.org> | 2020-07-28 19:42:56 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-07-30 05:42:45 +0000 |
commit | 457a95621a9ba0620a806cb17bd578f9c5468afd (patch) | |
tree | 624ba217db7efffd75f4602814409d8dda2030af | |
parent | 1eb52d4cc5e221ba82d3585f30e23e5a2e751863 (diff) | |
download | chrome-ec-457a95621a9ba0620a806cb17bd578f9c5468afd.tar.gz |
lazor: Modify LED id
Having left LED without right LED is confusing. Change to battery LED
since LED behavior is defined by battery status.
BUG=b:158226994
BRANCH=none
TEST=make buildall -j
TEST=ectool led battery query; check only battery LED is supported.
Signed-off-by: Jian-Jia Su <jjsu@chromium.org>
Change-Id: I06eeb76b90418d5f3b237e89fc0783f598d18634
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2325523
Reviewed-by: Wai-Hong Tam <waihong@google.com>
-rw-r--r-- | board/lazor/led.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/board/lazor/led.c b/board/lazor/led.c index 5daf69e3b8..45095d0b2c 100644 --- a/board/lazor/led.c +++ b/board/lazor/led.c @@ -23,7 +23,7 @@ #define BAT_LED_OFF 0 const enum ec_led_id supported_led_ids[] = { - EC_LED_ID_LEFT_LED, + EC_LED_ID_BATTERY_LED, }; const int supported_led_ids_count = ARRAY_SIZE(supported_led_ids); @@ -141,14 +141,14 @@ void led_control(enum ec_led_id led_id, enum ec_led_state state) return; if (state == LED_STATE_RESET) { - led_auto_control(EC_LED_ID_LEFT_LED, 1); + led_auto_control(EC_LED_ID_BATTERY_LED, 1); board_led_set_battery(); return; } color = state ? LED_BLUE : LED_OFF; - led_auto_control(EC_LED_ID_LEFT_LED, 0); + led_auto_control(EC_LED_ID_BATTERY_LED, 0); led_set_color(color); } |