diff options
author | Daisuke Nojiri <dnojiri@chromium.org> | 2021-05-28 10:48:14 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-06-25 16:36:56 +0000 |
commit | 59315ca614ae9883e5bfacb91d45b0d5529b0aa5 (patch) | |
tree | 07d47e2c7aaebb0eceabb28b3d9c23c6d072c70c /include/ec_commands.h | |
parent | 4f2e6792dd09c24805a0926c6239909b63acf1c5 (diff) | |
download | chrome-ec-59315ca614ae9883e5bfacb91d45b0d5529b0aa5.tar.gz |
chgstv2: Refactor charger_discharge_on_ac
This patch makes charger_discharge_on_ac call board_discharge_on_ac.
It also makes set_chg_ctrl_mode call charger_discharge_on_ac. This
makes sense since when the charge control mode changes,
discharge-on-ac also needs to be enabled or disabled.
BUG=b:188457962
BRANCH=none
TEST=make runhosttests
Change-Id: I65ec09f580afc987cc86f4c60c15c1f90ead6c3c
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2986848
Diffstat (limited to 'include/ec_commands.h')
-rw-r--r-- | include/ec_commands.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h index f38e23c021..be2278a393 100644 --- a/include/ec_commands.h +++ b/include/ec_commands.h @@ -4255,6 +4255,8 @@ enum ec_charge_control_mode { CHARGE_CONTROL_NORMAL = 0, CHARGE_CONTROL_IDLE, CHARGE_CONTROL_DISCHARGE, + /* Add no more entry below. */ + CHARGE_CONTROL_COUNT, }; #define EC_CHARGE_MODE_TEXT { \ |