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

Commit 1ca0c01f authored by Xiaozhe Shi's avatar Xiaozhe Shi
Browse files

power_supply: add POWER_SUPPLY_PROP_FLASH_TRIGGER



Add the power_supply property FLASH_TRIGGER in order to run algorithms
and workarounds for when the flash led need to strobe.

Change-Id: Icb2b25ffaaba329132f095f2377a22078633bf63
Signed-off-by: default avatarXiaozhe Shi <xiaozhes@codeaurora.org>
parent 24e83f4b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -234,6 +234,7 @@ static struct device_attribute power_supply_attrs[] = {
	POWER_SUPPLY_ATTR(safety_timer_enabled),
	POWER_SUPPLY_ATTR(charge_done),
	POWER_SUPPLY_ATTR(flash_active),
	POWER_SUPPLY_ATTR(flash_trigger),
	POWER_SUPPLY_ATTR(force_tlim),
	POWER_SUPPLY_ATTR(dp_dm),
	POWER_SUPPLY_ATTR(input_current_limited),
+1 −0
Original line number Diff line number Diff line
@@ -195,6 +195,7 @@ enum power_supply_property {
	POWER_SUPPLY_PROP_SAFETY_TIMER_ENABLE,
	POWER_SUPPLY_PROP_CHARGE_DONE,
	POWER_SUPPLY_PROP_FLASH_ACTIVE,
	POWER_SUPPLY_PROP_FLASH_TRIGGER,
	POWER_SUPPLY_PROP_FORCE_TLIM,
	POWER_SUPPLY_PROP_DP_DM,
	POWER_SUPPLY_PROP_INPUT_CURRENT_LIMITED,