ANDROID: GKI: power: power_supply: Add REAL_CAPACITY property

POWER_SUPPLY_PROP_REAL_CAPACITY reports the unadjusted
and unscaled battery capacity.

Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
(cherry picked from commit f2977772b1)
Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Bug: 150789066
Change-Id: I7a016cdf89904f4d5ecbfd9b9afbd05fbfe62441
This commit is contained in:
Anirudh Ghayal
2019-04-01 09:24:18 +05:30
committed by Mark Salyzyn
parent 913ef30153
commit 954e48cc31
2 changed files with 2 additions and 0 deletions

View File

@ -457,6 +457,7 @@ static struct device_attribute power_supply_attrs[] = {
POWER_SUPPLY_ATTR(therm_icl_limit),
POWER_SUPPLY_ATTR(dc_reset),
POWER_SUPPLY_ATTR(voltage_max_limit),
POWER_SUPPLY_ATTR(real_capacity),
/* Charge pump properties */
POWER_SUPPLY_ATTR(cp_status1),
POWER_SUPPLY_ATTR(cp_status2),

View File

@ -329,6 +329,7 @@ enum power_supply_property {
POWER_SUPPLY_PROP_THERM_ICL_LIMIT,
POWER_SUPPLY_PROP_DC_RESET,
POWER_SUPPLY_PROP_VOLTAGE_MAX_LIMIT,
POWER_SUPPLY_PROP_REAL_CAPACITY,
/* Charge pump properties */
POWER_SUPPLY_PROP_CP_STATUS1,
POWER_SUPPLY_PROP_CP_STATUS2,