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

Commit 08fbc452 authored by Xiaozhe Shi's avatar Xiaozhe Shi
Browse files

power_supply: add local extension property ESR_COUNT



Add the power supply property POWER_SUPPLY_PROP_ESR_COUNT to denote the
number of successful resistance estimates that the fuel gauge power
supply has read.

CRs-Fixed: 750051
Change-Id: I87d74a083d6149b9d1ca9a8ae1c464225705c607
Signed-off-by: default avatarXiaozhe Shi <xiaozhes@codeaurora.org>
parent e22a9bf6
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -214,6 +214,7 @@ static struct device_attribute power_supply_attrs[] = {
	POWER_SUPPLY_ATTR(charge_enabled),
	POWER_SUPPLY_ATTR(flash_current_max),
	POWER_SUPPLY_ATTR(update_now),
	POWER_SUPPLY_ATTR(esr_count),
	/* 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
@@ -166,6 +166,7 @@ enum power_supply_property {
	POWER_SUPPLY_PROP_CHARGE_ENABLED,
	POWER_SUPPLY_PROP_FLASH_CURRENT_MAX,
	POWER_SUPPLY_PROP_UPDATE_NOW,
	POWER_SUPPLY_PROP_ESR_COUNT,
	/* Local extensions of type int64_t */
	POWER_SUPPLY_PROP_CHARGE_COUNTER_EXT,
	/* Properties of type `const char *' */