summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDiana Z <dzigterman@chromium.org>2021-04-16 15:06:16 -0600
committerCommit Bot <commit-bot@chromium.org>2021-04-22 22:30:34 +0000
commit6ada099de9c62d6cc290be071fee4529ed86566c (patch)
tree52483243492845b3bb93e444060159a593692a67 /include
parent4746791009b75da679d44d45e8487c57c9191329 (diff)
downloadchrome-ec-6ada099de9c62d6cc290be071fee4529ed86566c.tar.gz
LED On/Off: Make battery LED optional
Currently, all boards using the LED On/Off module have battery LEDs. However, if we'd like to expand support to Chromeboxes then the battery LED must become optional. BRANCH=None BUG=b:185508707 TEST=make -j buildall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Ieae098829ebe6c8b103f23d5abdbf70e7bcbdf2d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2832692 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/led_onoff_states.h21
1 files changed, 7 insertions, 14 deletions
diff --git a/include/led_onoff_states.h b/include/led_onoff_states.h
index 355439abe3..baae0ca567 100644
--- a/include/led_onoff_states.h
+++ b/include/led_onoff_states.h
@@ -53,17 +53,6 @@ struct led_descriptor {
uint8_t time;
};
-
-/* Charging LED state table - defined in board's led.c */
-extern struct led_descriptor
- led_bat_state_table[LED_NUM_STATES][LED_NUM_PHASES];
-
-/* Charging LED state level 1 - defined in board's led.c */
-extern const int led_charge_lvl_1;
-
-/* Charging LED state level 2 - defined in board's led.c */
-extern const int led_charge_lvl_2;
-
enum pwr_led_states {
PWR_LED_STATE_ON,
PWR_LED_STATE_SUSPEND_AC,
@@ -73,15 +62,19 @@ enum pwr_led_states {
};
/**
- * Set battery LED color - defined in board's led.c
+ * Set battery LED color - defined in board's led.c if supported, along with:
+ * - led_bat_state_table
+ * - led_charge_lvl_1
+ * - led_charge_lvl_2
*
* @param color Color to set on battery LED
*
*/
-void led_set_color_battery(enum ec_led_colors color);
+__override_proto void led_set_color_battery(enum ec_led_colors color);
/**
- * Set power LED color - defined in board's led.c if supported
+ * Set power LED color - defined in board's led.c if supported, along with:
+ * - led_pwr_state_table
*/
__override_proto void led_set_color_power(enum ec_led_colors color);