ANDROID: GKI: power_supply: add batt_age_level property

Add batt_age_level property to support loading multiple profiles
based on the battery age level specified by the user.

Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
(cherry picked from commit 0fe2e0aadc)
Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Bug: 150789066
Change-Id: I41e61c615f2d1df988a0de83e4e2dbddd7a36441
This commit is contained in:
Subbaraman Narayanamurthy
2018-12-18 20:16:06 -08:00
committed by Mark Salyzyn
parent eecc3db929
commit e58a053453
2 changed files with 2 additions and 0 deletions

View File

@ -450,6 +450,7 @@ static struct device_attribute power_supply_attrs[] = {
POWER_SUPPLY_ATTR(fg_reset),
POWER_SUPPLY_ATTR(qc_opti_disable),
POWER_SUPPLY_ATTR(cc_soc),
POWER_SUPPLY_ATTR(batt_age_level),
/* Charge pump properties */
POWER_SUPPLY_ATTR(cp_status1),
POWER_SUPPLY_ATTR(cp_status2),

View File

@ -322,6 +322,7 @@ enum power_supply_property {
POWER_SUPPLY_PROP_FG_RESET,
POWER_SUPPLY_PROP_QC_OPTI_DISABLE,
POWER_SUPPLY_PROP_CC_SOC,
POWER_SUPPLY_PROP_BATT_AGE_LEVEL,
/* Charge pump properties */
POWER_SUPPLY_PROP_CP_STATUS1,
POWER_SUPPLY_PROP_CP_STATUS2,