summaryrefslogtreecommitdiff
path: root/common/charge_state_v2.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/charge_state_v2.c')
-rw-r--r--common/charge_state_v2.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/common/charge_state_v2.c b/common/charge_state_v2.c
index a7b1ddf708..5810f9c8fd 100644
--- a/common/charge_state_v2.c
+++ b/common/charge_state_v2.c
@@ -441,12 +441,7 @@ static int charge_request(int voltage, int current)
* Set the charge inhibit bit when possible as it appears to save
* power in some cases (e.g. Nyan with BQ24735).
*/
-#if defined(CONFIG_CHARGER_BD99955) || defined(CONFIG_CHARGER_BD99956)
- /* Charger auto exits from battery learn mode if charge inhibited */
- if (current > 0 || chg_ctl_mode == CHARGE_CONTROL_DISCHARGE)
-#else
if (voltage > 0 || current > 0)
-#endif
r3 = charger_set_mode(0);
else
r3 = charger_set_mode(CHARGE_FLAG_INHIBIT_CHARGE);