summaryrefslogtreecommitdiff
path: root/include/charge_state.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/charge_state.h')
-rw-r--r--include/charge_state.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/charge_state.h b/include/charge_state.h
index 0a4cd869da..182a99f703 100644
--- a/include/charge_state.h
+++ b/include/charge_state.h
@@ -128,5 +128,10 @@ enum power_state charge_get_state(void);
*/
int charge_get_percent(void);
+/**
+ * Return non-zero if discharging and battery so low we should shut down.
+ */
+int charge_want_shutdown(void);
+
#endif /* __CROS_EC_CHARGE_STATE_H */