summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/charge_ramp.h7
-rw-r--r--include/charge_state.h10
2 files changed, 10 insertions, 7 deletions
diff --git a/include/charge_ramp.h b/include/charge_ramp.h
index 51ad777aa1..c4082fdbf2 100644
--- a/include/charge_ramp.h
+++ b/include/charge_ramp.h
@@ -17,13 +17,6 @@ enum chg_ramp_vbus_state {
};
/**
- * Check if board is consuming full input current
- *
- * @return Board is consuming full input current
- */
-int board_is_consuming_full_charge(void);
-
-/**
* Check if VBUS is too low
*
* @param port Charge ramp port
diff --git a/include/charge_state.h b/include/charge_state.h
index 0cf70c22de..fb1a41527a 100644
--- a/include/charge_state.h
+++ b/include/charge_state.h
@@ -92,6 +92,16 @@ uint32_t charge_get_flags(void);
int charge_get_percent(void);
/**
+ * Check if board is consuming full input current
+ *
+ * This returns true if the battery charge percentage is between 2% and 95%
+ * exclusive.
+ *
+ * @return Board is consuming full input current
+ */
+int charge_is_consuming_full_input_current(void);
+
+/**
* Return non-zero if discharging and battery so low we should shut down.
*/
int charge_want_shutdown(void);