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

Commit ac0aff3c authored by Anirudh Ghayal's avatar Anirudh Ghayal
Browse files

power: Add power supply property to force recharge



POWER_SUPPLY_PROP_FORCE_RECHARGE can be used by FG/QG
to force a recharge.

Change-Id: I417d46cc07f455792906a18f4b6dc8e5ca8ca3d9
Signed-off-by: default avatarAnirudh Ghayal <aghayal@codeaurora.org>
parent 960bbe82
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(force_recharge),
	/* Local extensions of type int64_t */
	POWER_SUPPLY_ATTR(charge_counter_ext),
	/* Properties of type `const char *' */
+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_FORCE_RECHARGE,
	/* Local extensions of type int64_t */
	POWER_SUPPLY_PROP_CHARGE_COUNTER_EXT,
	/* Properties of type `const char *' */