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.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/charge_state.h b/include/charge_state.h
index 35c2041d45..0da544422f 100644
--- a/include/charge_state.h
+++ b/include/charge_state.h
@@ -103,6 +103,13 @@ int charge_want_shutdown(void);
*/
int charge_temp_sensor_get_val(int idx, int *temp_ptr);
+/**
+ * Get the pointer to the battery parameters we saved in charge state.
+ *
+ * Use this carefully. Other threads can modify data while you are reading.
+ */
+const struct batt_params *charger_current_battery_params(void);
+
/* Pick the right implementation */
#ifdef CONFIG_CHARGER_V1