diff options
author | Dave Parker <dparker@chromium.org> | 2013-07-25 22:39:13 -0700 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-08-01 11:07:58 -0700 |
commit | 8e28efa7ac4bc6cec969a928d1b34b6d423d582f (patch) | |
tree | 1c3e7cb6f28a38119bd1e798bc5595734a9fa661 /include/hooks.h | |
parent | 706f1211468ebfcd0fc9890b83f8443994a9f7f0 (diff) | |
download | chrome-ec-8e28efa7ac4bc6cec969a928d1b34b6d423d582f.tar.gz |
Add hook for changes in the charge state machine
BUG=chrome-os-partner:20145
BRANCH=falco,peppy
TEST=Manual. Tested with charging timeout logic.
Change-Id: Iab1c9746dcab5820fcdeb3e0d94bfcb0c47e57f2
Signed-off-by: Dave Parker <dparker@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/63537
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'include/hooks.h')
-rw-r--r-- | include/hooks.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/hooks.h b/include/hooks.h index 59f982eaee..1481a756a0 100644 --- a/include/hooks.h +++ b/include/hooks.h @@ -116,6 +116,13 @@ enum hook_type { HOOK_POWER_BUTTON_CHANGE, /* + * Charge state machine status changed. + * + * Hook routines are called from the charger task. + */ + HOOK_CHARGE_STATE_CHANGE, + + /* * Periodic tick, every HOOK_TICK_INTERVAL. * * Hook routines will be called from the TICK task. |