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

Commit 43621f9f authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy Committed by Matt Wagantall
Browse files

power: power_supply: add POWER_SUPPLY_PROP_FLASH_ACTIVE property



Add a local extension property POWER_SUPPLY_PROP_FLASH_ACTIVE
to the list of power supply properties. This will be used to
notify the power supply if high current loads like flash
is active or not.

CRs-Fixed: 793295
Change-Id: I02f27da81f13a258b8c7cd72dae515698a38a3e5
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent 96051846
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -230,6 +230,7 @@ static struct device_attribute power_supply_attrs[] = {
	POWER_SUPPLY_ATTR(safety_timer_enabled),
	POWER_SUPPLY_ATTR(charge_done),
	POWER_SUPPLY_ATTR(allow_detection),
	POWER_SUPPLY_ATTR(flash_active),
	/* 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
@@ -178,6 +178,7 @@ enum power_supply_property {
	POWER_SUPPLY_PROP_SAFETY_TIMER_ENABLE,
	POWER_SUPPLY_PROP_CHARGE_DONE,
	POWER_SUPPLY_PROP_ALLOW_DETECTION,
	POWER_SUPPLY_PROP_FLASH_ACTIVE,
	/* Local extensions of type int64_t */
	POWER_SUPPLY_PROP_CHARGE_COUNTER_EXT,
	/* Properties of type `const char *' */