diff options
author | Parth Malkan <parthmalkan@google.com> | 2021-10-05 15:20:43 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-10-06 21:39:13 +0000 |
commit | 793e9a859327d4c282587459362143c367850207 (patch) | |
tree | 290997438dcc8934a54fca5fa7fe78535732ad4d | |
parent | d921605694c3a6e371d081e057aee7d976eb20aa (diff) | |
download | chrome-ec-793e9a859327d4c282587459362143c367850207.tar.gz |
main: Add count in charge_state enumstabilize-14267.B-main
BUG=none
BRANCH=none
TEST=make buildall -j
Change-Id: I6b1cd6968f38eeb96198153a124b11affea2b0a2
Signed-off-by: Parth Malkan <parthmalkan@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3205483
Reviewed-by: Wai-Hong Tam <waihong@google.com>
-rw-r--r-- | include/charge_state.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/charge_state.h b/include/charge_state.h index 588cbaf6f9..0ab7ecd686 100644 --- a/include/charge_state.h +++ b/include/charge_state.h @@ -45,7 +45,9 @@ enum charge_state { /* Charging, almost fully charged */ PWR_STATE_CHARGE_NEAR_FULL, /* Charging state machine error */ - PWR_STATE_ERROR + PWR_STATE_ERROR, + /* Count of total states */ + PWR_STATE_COUNT }; /* Charge state flags */ |