summaryrefslogtreecommitdiff
path: root/firmware/target/arm/powermgmt-ascodec.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/powermgmt-ascodec.c')
-rw-r--r--firmware/target/arm/powermgmt-ascodec.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/firmware/target/arm/powermgmt-ascodec.c b/firmware/target/arm/powermgmt-ascodec.c
index 6ee6209823..1eaaf6ab30 100644
--- a/firmware/target/arm/powermgmt-ascodec.c
+++ b/firmware/target/arm/powermgmt-ascodec.c
@@ -134,10 +134,6 @@ static inline void charger_plugged(void)
134{ 134{
135 batt_threshold = BATT_FULL_VOLTAGE; /* Start with topped value. */ 135 batt_threshold = BATT_FULL_VOLTAGE; /* Start with topped value. */
136 battery_voltage_sync(); 136 battery_voltage_sync();
137#if defined(USB_STATUS_BY_EVENT) && defined(USB_DETECT_BY_DRV)
138 /* Charger pin detect is USB pin detect */
139 usb_connect_event(true);
140#endif
141} 137}
142 138
143static inline void charger_control(void) 139static inline void charger_control(void)
@@ -192,10 +188,6 @@ static inline void charger_unplugged(void)
192 disable_charger(); 188 disable_charger();
193 if (charge_state >= CHARGE_STATE_ERROR) 189 if (charge_state >= CHARGE_STATE_ERROR)
194 charge_state = DISCHARGING; /* Reset error */ 190 charge_state = DISCHARGING; /* Reset error */
195#if defined(USB_STATUS_BY_EVENT) && defined(USB_DETECT_BY_DRV)
196 /* Charger pin detect is USB pin detect */
197 usb_connect_event(false);
198#endif
199} 191}
200 192
201/* Main charging algorithm - called from powermgmt.c */ 193/* Main charging algorithm - called from powermgmt.c */