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

Commit 3931df4a authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

power_supply: Add clear_soh property



Add clear_soh property to the power supply framework so that it
can be used to indicate whether the battery is inserted for the
first time indicating a new battery. This can be used to clear
the SOH parameters.

Change-Id: I5ca88d973db7796cb6c9b1ca31d329cbef0589bd
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent 827905a7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -381,6 +381,7 @@ static struct device_attribute power_supply_attrs[] = {
	POWER_SUPPLY_ATTR(esr_actual),
	POWER_SUPPLY_ATTR(esr_nominal),
	POWER_SUPPLY_ATTR(soh),
	POWER_SUPPLY_ATTR(clear_soh),
	POWER_SUPPLY_ATTR(force_recharge),
	POWER_SUPPLY_ATTR(fcc_stepper_enable),
	POWER_SUPPLY_ATTR(toggle_stat),
+1 −0
Original line number Diff line number Diff line
@@ -307,6 +307,7 @@ enum power_supply_property {
	POWER_SUPPLY_PROP_ESR_ACTUAL,
	POWER_SUPPLY_PROP_ESR_NOMINAL,
	POWER_SUPPLY_PROP_SOH,
	POWER_SUPPLY_PROP_CLEAR_SOH,
	POWER_SUPPLY_PROP_FORCE_RECHARGE,
	POWER_SUPPLY_PROP_FCC_STEPPER_ENABLE,
	POWER_SUPPLY_PROP_TOGGLE_STAT,