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

Commit 43d933ba authored by Xiaozhe Shi's avatar Xiaozhe Shi Committed by Subbaraman Narayanamurthy
Browse files

power_supply: add local extension POWER_SUPPLY_PROP_CHARGE_DONE



Add the charge done property in order to allow notifications when
charging completes.

CRs-Fixed: 799673
Change-Id: If207bd8188e75b840231ec274b24dbb7ad67e145
Signed-off-by: default avatarXiaozhe Shi <xiaozhes@codeaurora.org>
parent 665500fb
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -218,6 +218,7 @@ static struct device_attribute power_supply_attrs[] = {
	POWER_SUPPLY_ATTR(update_now),
	POWER_SUPPLY_ATTR(esr_count),
	POWER_SUPPLY_ATTR(safety_timer_enabled),
	POWER_SUPPLY_ATTR(charge_done),
	/* 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
@@ -170,6 +170,7 @@ enum power_supply_property {
	POWER_SUPPLY_PROP_UPDATE_NOW,
	POWER_SUPPLY_PROP_ESR_COUNT,
	POWER_SUPPLY_PROP_SAFETY_TIMER_ENABLE,
	POWER_SUPPLY_PROP_CHARGE_DONE,
	/* Local extensions of type int64_t */
	POWER_SUPPLY_PROP_CHARGE_COUNTER_EXT,
	/* Properties of type `const char *' */