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

Commit e4296c10 authored by Umang Agrawal's avatar Umang Agrawal Committed by Harry Yang
Browse files

power_supply: Add TOGGLE_STAT property



Add POWER_SUPPLY_PROP_TOGGLE_STAT to enable userspace to toggle
the STAT/SMB_EN pin.

CRs-Fixed: 2200340

Change-Id: I10eead62cf8b8be39e1b2c8652edf69177ed8aef
Signed-off-by: default avatarUmang Agrawal <uagrawal@codeaurora.org>
parent c46489f3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -383,6 +383,7 @@ static struct device_attribute power_supply_attrs[] = {
	POWER_SUPPLY_ATTR(soh),
	POWER_SUPPLY_ATTR(force_recharge),
	POWER_SUPPLY_ATTR(fcc_stepper_enable),
	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
@@ -309,6 +309,7 @@ enum power_supply_property {
	POWER_SUPPLY_PROP_SOH,
	POWER_SUPPLY_PROP_FORCE_RECHARGE,
	POWER_SUPPLY_PROP_FCC_STEPPER_ENABLE,
	POWER_SUPPLY_PROP_TOGGLE_STAT,
	/* Local extensions of type int64_t */
	POWER_SUPPLY_PROP_CHARGE_COUNTER_EXT,
	/* Properties of type `const char *' */