File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -110,8 +110,6 @@ enum battery_present battery_is_present(void)
110
110
return BP_NO ;
111
111
else if (!bp )
112
112
return BP_NO ;
113
- else if (!(charger_current_battery_params ()-> flags & BATT_FLAG_RESPONSIVE ))
114
- return BP_NOT_SURE ;
115
113
else if (battery_check_disconnect () != BATTERY_NOT_DISCONNECTED )
116
114
return BP_NOT_SURE ;
117
115
else
Original file line number Diff line number Diff line change @@ -357,9 +357,7 @@ void cypd_update_power(void)
357
357
}
358
358
359
359
if (extpower_is_present () ||
360
- (charger_current_battery_params ()-> flags & BATT_FLAG_RESPONSIVE &&
361
- charger_current_battery_params ()-> state_of_charge > 0 &&
362
- battery_is_present () == BP_YES ))
360
+ battery_is_present () == BP_YES )
363
361
system_power_present = 1 ;
364
362
else
365
363
system_power_present = 0 ;
@@ -370,9 +368,7 @@ int cypd_update_power_status(void)
370
368
int i ;
371
369
int rv = EC_SUCCESS ;
372
370
int power_stat = 0 ;
373
- if (charger_current_battery_params ()-> flags & BATT_FLAG_RESPONSIVE &&
374
- charger_current_battery_params ()-> state_of_charge > 0 &&
375
- battery_is_present () == BP_YES ) {
371
+ if (battery_is_present () == BP_YES ) {
376
372
power_stat |= BIT (3 );
377
373
}
378
374
if (extpower_is_present ()) {
You can’t perform that action at this time.
0 commit comments