summaryrefslogtreecommitdiff
path: root/util/ectool.c
diff options
context:
space:
mode:
authorDuncan Laurie <dlaurie@google.com>2017-03-13 09:47:25 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-03-13 19:58:51 -0700
commit35387474a1a03209aee02463ad53e300b4d1d938 (patch)
treec3051f32d196d11740fc1110202f90b26660c6b7 /util/ectool.c
parent584cd06c9cd7f3caeba348dc6f62b67738544ca4 (diff)
downloadchrome-ec-35387474a1a03209aee02463ad53e300b4d1d938.tar.gz
led: Add options for left and right led
Add LED types for left and right so they can be addressed properly with ectool. BUG=b:36150361 BRANCH=none TEST=manual testing of 'ectool led <left|right> <color>' behavior Change-Id: Iea25cc69db2d35416e787dcb5a324d2e2cf5d3a6 Signed-off-by: Duncan Laurie <dlaurie@google.com> Reviewed-on: https://chromium-review.googlesource.com/453126 Reviewed-by: Scott Collyer <scollyer@chromium.org>
Diffstat (limited to 'util/ectool.c')
-rw-r--r--util/ectool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/ectool.c b/util/ectool.c
index 10a178c942..688c402950 100644
--- a/util/ectool.c
+++ b/util/ectool.c
@@ -252,7 +252,7 @@ BUILD_ASSERT(ARRAY_SIZE(led_color_names) == EC_LED_COLOR_COUNT);
/* Note: depends on enum ec_led_id */
static const char * const led_names[] = {
- "battery", "power", "adapter"};
+ "battery", "power", "adapter", "left", "right"};
BUILD_ASSERT(ARRAY_SIZE(led_names) == EC_LED_ID_COUNT);
/* Check SBS numerical value range */