diff options
author | Simon Glass <sjg@chromium.org> | 2023-05-08 16:12:47 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-05-15 16:41:42 +0000 |
commit | 8d1ea27042db3f86cdf05fea26423864caf04d4b (patch) | |
tree | ee871495d846c5192f71f077f3664eba7f47d596 /include/charge_state.h | |
parent | 5cc8ef46cfbca7aeff4023df27ebd4af02ea81d2 (diff) | |
download | chrome-ec-8d1ea27042db3f86cdf05fea26423864caf04d4b.tar.gz |
charger: Rename enum charge_state_v2 to charge_state
Now that we don't have an old charge_state, this is the only one.
Rename it accordingly.
This makes no functional change.
BUG=b:218332694
TEST=make buildall
Change-Id: I95923eedd2715b8c7793df8f6e3171c82f9347ca
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4516193
Reviewed-by: Tristan Honscheid <honscheid@google.com>
Tested-by: Simon Glass <sjg@chromium.org>
Commit-Queue: Eric Peers <epeers@google.com>
Diffstat (limited to 'include/charge_state.h')
-rw-r--r-- | include/charge_state.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/charge_state.h b/include/charge_state.h index 34576dc333..ed7ca0a4d9 100644 --- a/include/charge_state.h +++ b/include/charge_state.h @@ -83,7 +83,7 @@ enum led_pwr_state { * only to control the LEDs (with one not-quite-correct exception). For V2 * we use a different set of states internally. */ -enum charge_state_v2 { +enum charge_state { ST_IDLE = 0, ST_DISCHARGE, ST_CHARGE, @@ -98,7 +98,7 @@ struct charge_state_data { int batt_is_charging; struct charger_params chg; struct batt_params batt; - enum charge_state_v2 state; + enum charge_state state; int requested_voltage; int requested_current; int desired_input_current; @@ -126,7 +126,7 @@ enum led_pwr_state led_pwr_get_state(void); /** * Return current charge v2 state. */ -__test_only enum charge_state_v2 charge_get_state_v2(void); +__test_only enum charge_state charge_get_state(void); /** * Return non-zero if battery is so low we want to keep AP off. |