diff options
author | Simon Glass <sjg@chromium.org> | 2023-05-08 16:01:39 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-05-11 14:04:25 +0000 |
commit | 47acf64182ccc833bb590c6d307d6e7c66a93360 (patch) | |
tree | 551e66d043888d04d9507865a8265285032defc1 /board/dojo | |
parent | 67debcce5555daf1c24e1eada34f7607bf041308 (diff) | |
download | chrome-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/dojo')
-rw-r--r-- | board/dojo/led.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/dojo/led.c b/board/dojo/led.c index 4b2b379a1b..f1af389f60 100644 --- a/board/dojo/led.c +++ b/board/dojo/led.c @@ -134,7 +134,7 @@ static void board_led_set_battery(void) battery_ticks++; - 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); |