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/reef_it8320 | |
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/reef_it8320')
-rw-r--r-- | board/reef_it8320/led.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/reef_it8320/led.c b/board/reef_it8320/led.c index 630fdf336d..c150b237c4 100644 --- a/board/reef_it8320/led.c +++ b/board/reef_it8320/led.c @@ -96,7 +96,7 @@ static void led_set_battery(void) static int battery_ticks; static int suspend_ticks; - switch (charge_get_state()) { + switch (led_pwr_get_state()) { case PWR_STATE_CHARGE: led_set_color_battery(LED_AMBER); break; |