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.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/charge_state.h b/include/charge_state.h
index 9349c3ea4c..ed777c1a64 100644
--- a/include/charge_state.h
+++ b/include/charge_state.h
@@ -96,17 +96,15 @@ int charge_keep_power_off(void);
*/
uint32_t charge_get_flags(void);
-#if defined(CONFIG_CHARGER)
/**
* Return current battery charge percentage.
*/
int charge_get_percent(void);
-#elif defined(CONFIG_BATTERY)
+
/**
* Return current battery charge if not using charge manager sub-system.
*/
int board_get_battery_soc(void);
-#endif
/**
* Return current display charge in 10ths of a percent (e.g. 1000 = 100.0%)