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

Commit 4fe0601f authored by Umang Agrawal's avatar Umang Agrawal
Browse files

power_supply: Add TOGGLE_STAT property



Add POWER_SUPPLY_PROP_TOGGLE_STAT to enable userspace to toggle
the STAT pin.

CRs-Fixed: 2200340

Change-Id: I10eead62cf8b8be39e1b2c8652edf69177ed8aef
Signed-off-by: default avatarUmang Agrawal <uagrawal@codeaurora.org>
parent b226045e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -327,6 +327,7 @@ static struct device_attribute power_supply_attrs[] = {
	POWER_SUPPLY_ATTR(batt_profile_version),
	POWER_SUPPLY_ATTR(batt_full_current),
	POWER_SUPPLY_ATTR(recharge_soc),
	POWER_SUPPLY_ATTR(toggle_stat),
	/* 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
@@ -278,6 +278,7 @@ enum power_supply_property {
	POWER_SUPPLY_PROP_BATT_PROFILE_VERSION,
	POWER_SUPPLY_PROP_BATT_FULL_CURRENT,
	POWER_SUPPLY_PROP_RECHARGE_SOC,
	POWER_SUPPLY_PROP_TOGGLE_STAT,
	/* Local extensions of type int64_t */
	POWER_SUPPLY_PROP_CHARGE_COUNTER_EXT,
	/* Properties of type `const char *' */