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)
110110 return BP_NO ;
111111 else if (!bp )
112112 return BP_NO ;
113- else if (!(charger_current_battery_params ()-> flags & BATT_FLAG_RESPONSIVE ))
114- return BP_NOT_SURE ;
115113 else if (battery_check_disconnect () != BATTERY_NOT_DISCONNECTED )
116114 return BP_NOT_SURE ;
117115 else
Original file line number Diff line number Diff line change @@ -357,9 +357,7 @@ void cypd_update_power(void)
357357 }
358358
359359 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 )
363361 system_power_present = 1 ;
364362 else
365363 system_power_present = 0 ;
@@ -370,9 +368,7 @@ int cypd_update_power_status(void)
370368 int i ;
371369 int rv = EC_SUCCESS ;
372370 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 ) {
376372 power_stat |= BIT (3 );
377373 }
378374 if (extpower_is_present ()) {
You can’t perform that action at this time.
0 commit comments