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

Commit ab30a62b authored by Devesh Jhunjhunwala's avatar Devesh Jhunjhunwala Committed by Nicholas Troast
Browse files

power_supply: Introduce property for restricted charging



Create a new property called restriced_charging that, when
asserted, halves the current output to the battery.

Change-Id: I1a877f34f3a0d7ba3966aa85c10b35ad17ed1452
Signed-off-by: default avatarDevesh Jhunjhunwala <deveshj@codeaurora.org>
parent fb736db1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -240,6 +240,7 @@ static struct device_attribute power_supply_attrs[] = {
	POWER_SUPPLY_ATTR(rerun_aicl),
	POWER_SUPPLY_ATTR(cycle_count_id),
	POWER_SUPPLY_ATTR(safety_timer_expired),
	POWER_SUPPLY_ATTR(restricted_charging),
	/* 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
@@ -201,6 +201,7 @@ enum power_supply_property {
	POWER_SUPPLY_PROP_RERUN_AICL,
	POWER_SUPPLY_PROP_CYCLE_COUNT_ID,
	POWER_SUPPLY_PROP_SAFETY_TIMER_EXPIRED,
	POWER_SUPPLY_PROP_RESTRICTED_CHARGING,
	/* Local extensions of type int64_t */
	POWER_SUPPLY_PROP_CHARGE_COUNTER_EXT,
	/* Properties of type `const char *' */