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

Commit e9344c5a authored by Xiaozhe Shi's avatar Xiaozhe Shi Committed by Matt Wagantall
Browse files

power_supply: add CHARGE_NOW_RAW, CHARGE_NOW_ERROR, and CAPACITY_RAW



Add the properties CHARGE_NOW_RAW, CHARGE_NOW_ERROR, and CAPACITY_RAW
to the power supply framework in order to report fuel gauge internal
variables.

CRs-Fixed: 808597
Change-Id: Ia39dd191de9ce121099560c09bf2e5d501f78bc7
Signed-off-by: default avatarXiaozhe Shi <xiaozhes@codeaurora.org>
parent c9482851
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -168,6 +168,8 @@ static struct device_attribute power_supply_attrs[] = {
	POWER_SUPPLY_ATTR(charge_full),
	POWER_SUPPLY_ATTR(charge_empty),
	POWER_SUPPLY_ATTR(charge_now),
	POWER_SUPPLY_ATTR(charge_now_raw),
	POWER_SUPPLY_ATTR(charge_now_error),
	POWER_SUPPLY_ATTR(charge_avg),
	POWER_SUPPLY_ATTR(charge_counter),
	POWER_SUPPLY_ATTR(constant_charge_current),
@@ -187,6 +189,7 @@ static struct device_attribute power_supply_attrs[] = {
	POWER_SUPPLY_ATTR(capacity_alert_min),
	POWER_SUPPLY_ATTR(capacity_alert_max),
	POWER_SUPPLY_ATTR(capacity_level),
	POWER_SUPPLY_ATTR(capacity_raw),
	POWER_SUPPLY_ATTR(temp),
	POWER_SUPPLY_ATTR(temp_max),
	POWER_SUPPLY_ATTR(temp_min),
+3 −0
Original line number Diff line number Diff line
@@ -116,6 +116,8 @@ enum power_supply_property {
	POWER_SUPPLY_PROP_CHARGE_FULL,
	POWER_SUPPLY_PROP_CHARGE_EMPTY,
	POWER_SUPPLY_PROP_CHARGE_NOW,
	POWER_SUPPLY_PROP_CHARGE_NOW_RAW,
	POWER_SUPPLY_PROP_CHARGE_NOW_ERROR,
	POWER_SUPPLY_PROP_CHARGE_AVG,
	POWER_SUPPLY_PROP_CHARGE_COUNTER,
	POWER_SUPPLY_PROP_CONSTANT_CHARGE_CURRENT,
@@ -135,6 +137,7 @@ enum power_supply_property {
	POWER_SUPPLY_PROP_CAPACITY_ALERT_MIN, /* in percents! */
	POWER_SUPPLY_PROP_CAPACITY_ALERT_MAX, /* in percents! */
	POWER_SUPPLY_PROP_CAPACITY_LEVEL,
	POWER_SUPPLY_PROP_CAPACITY_RAW,
	POWER_SUPPLY_PROP_TEMP,
	POWER_SUPPLY_PROP_TEMP_MAX,
	POWER_SUPPLY_PROP_TEMP_MIN,