summaryrefslogtreecommitdiff
path: root/board/dratini
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-05-08 16:01:39 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-05-11 14:04:25 +0000
commit47acf64182ccc833bb590c6d307d6e7c66a93360 (patch)
tree551e66d043888d04d9507865a8265285032defc1 /board/dratini
parent67debcce5555daf1c24e1eada34f7607bf041308 (diff)
downloadchrome-ec-47acf64182ccc833bb590c6d307d6e7c66a93360.tar.gz
charger: Rename charge_get_state() to led_pwr_get_state()
We have a new 'charge state' in struct charge_state_data as part of the charge_state_v2.h file. This is confusing. Rename this function to match the enum it is referencing. This makes no functional change. BUG=b:218332694 TEST=make buildall Change-Id: I7f08dd4fb11e2939e0ef779018c1e3206ebc8d20 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4516188 Commit-Queue: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org> Reviewed-by: Aaron Massey <aaronmassey@google.com>
Diffstat (limited to 'board/dratini')
-rw-r--r--board/dratini/led.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/dratini/led.c b/board/dratini/led.c
index 035bd963d5..16c0699a8e 100644
--- a/board/dratini/led.c
+++ b/board/dratini/led.c
@@ -156,7 +156,7 @@ static void led_set_battery(void)
if (!board_is_convertible()) {
if (chipset_in_state(CHIPSET_STATE_SUSPEND |
CHIPSET_STATE_STANDBY) &&
- charge_get_state() != PWR_STATE_CHARGE) {
+ led_pwr_get_state() != PWR_STATE_CHARGE) {
power_ticks++;
led_set_color_battery(0, power_ticks & 0x4 ? LED_WHITE :
@@ -169,7 +169,7 @@ static void led_set_battery(void)
power_ticks = 0;
- switch (charge_get_state()) {
+ switch (led_pwr_get_state()) {
case PWR_STATE_CHARGE:
/* Always indicate when charging, even in suspend. */
set_active_port_color(LED_AMBER);