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

Commit 929ba60a authored by Christopher N. Hesse's avatar Christopher N. Hesse Committed by bonuzzz
Browse files

battery: sm5703: Report AOSP-friendly current values

Change-Id: I9111ba6560b310e8ffad4d6c71e9a80129d40e4f
(cherry picked from commit a13a058fec3aa03d6218259c6d708c74532544c4)
parent fa4b4fa3
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -877,6 +877,8 @@ static int sec_chg_get_property(struct power_supply *psy,
		case POWER_SUPPLY_PROP_CURRENT_MAX:
			sm5703_test_read(charger->sm5703->i2c_client);
			val->intval = sm5703_get_fast_charging_current(charger->sm5703->i2c_client);
			// AOSP expects microamperes
			val->intval *= 1000;
			break;
		case POWER_SUPPLY_PROP_CURRENT_AVG:
			break;