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

Commit 7eb574c5 authored by Anirudh Ghayal's avatar Anirudh Ghayal
Browse files

power: power_supply: Add REAL_CAPACITY power-supply property



POWER_SUPPLY_PROP_REAL_CAPACITY reports the unadjusted
and unscaled battery capacity.

Change-Id: I7a016cdf89904f4d5ecbfd9b9afbd05fbfe62441
Signed-off-by: default avatarAnirudh Ghayal <aghayal@codeaurora.org>
parent dedb3ae3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -342,6 +342,7 @@ static struct device_attribute power_supply_attrs[] = {
	POWER_SUPPLY_ATTR(fcc_stepper_enable),
	POWER_SUPPLY_ATTR(cc_soc),
	POWER_SUPPLY_ATTR(qg_vbms_mode),
	POWER_SUPPLY_ATTR(real_capacity),
	/* 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
@@ -305,6 +305,7 @@ enum power_supply_property {
	POWER_SUPPLY_PROP_FCC_STEPPER_ENABLE,
	POWER_SUPPLY_PROP_CC_SOC,
	POWER_SUPPLY_PROP_QG_VBMS_MODE,
	POWER_SUPPLY_PROP_REAL_CAPACITY,
	/* Local extensions of type int64_t */
	POWER_SUPPLY_PROP_CHARGE_COUNTER_EXT,
	/* Properties of type `const char *' */