Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e7967c68 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "power: smb1360: update battery status immediately after enabling charger"

parents e7cbbcfd ff1be165
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1000,6 +1000,7 @@ static int smb1360_battery_set_property(struct power_supply *psy,
	switch (prop) {
	case POWER_SUPPLY_PROP_CHARGING_ENABLED:
		smb1360_charging_disable(chip, USER, !val->intval);
		power_supply_changed(&chip->batt_psy);
		break;
	case POWER_SUPPLY_PROP_CAPACITY:
		chip->fake_battery_soc = val->intval;