mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-10 01:21:49 +00:00
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>
This commit is contained in:
committed by
chrome-bot
parent
584cd06c9c
commit
35387474a1
@@ -1712,6 +1712,10 @@ enum ec_led_id {
|
||||
EC_LED_ID_POWER_LED,
|
||||
/* LED on power adapter or its plug */
|
||||
EC_LED_ID_ADAPTER_LED,
|
||||
/* LED to indicate left side */
|
||||
EC_LED_ID_LEFT_LED,
|
||||
/* LED to indicate right side */
|
||||
EC_LED_ID_RIGHT_LED,
|
||||
|
||||
EC_LED_ID_COUNT
|
||||
};
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user