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

Commit 232897ea authored by Anirudh Ghayal's avatar Anirudh Ghayal
Browse files

power_supply: Add BATT_FULL and RECHARGE_SOC properties



Add the below power supply properties to be used by Qgauge.

POWER_SUPPLY_PROP_BATT_FULL_CURRENT - To report the current
at which battery reports 100% SOC.
POWER_SUPPLY_PROP_RECHARGE_SOC - To report the SOC at which
the battery restarts charging.

Change-Id: Iacb28b04b34ca603651a0437ee7e97abfd638b21
Signed-off-by: default avatarAnirudh Ghayal <aghayal@codeaurora.org>
parent a8bac554
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -324,6 +324,8 @@ static struct device_attribute power_supply_attrs[] = {
	POWER_SUPPLY_ATTR(parallel_fcc_max),
	POWER_SUPPLY_ATTR(min_icl),
	POWER_SUPPLY_ATTR(moisture_detected),
	POWER_SUPPLY_ATTR(batt_full_current),
	POWER_SUPPLY_ATTR(recharge_soc),
	/* Local extensions of type int64_t */
	POWER_SUPPLY_ATTR(charge_counter_ext),
	/* Properties of type `const char *' */
+2 −0
Original line number Diff line number Diff line
@@ -275,6 +275,8 @@ enum power_supply_property {
	POWER_SUPPLY_PROP_PARALLEL_FCC_MAX,
	POWER_SUPPLY_PROP_MIN_ICL,
	POWER_SUPPLY_PROP_MOISTURE_DETECTED,
	POWER_SUPPLY_PROP_BATT_FULL_CURRENT,
	POWER_SUPPLY_PROP_RECHARGE_SOC,
	/* Local extensions of type int64_t */
	POWER_SUPPLY_PROP_CHARGE_COUNTER_EXT,
	/* Properties of type `const char *' */