mirror of
https://github.com/LineageOS/android_kernel_fxtec_sm6115.git
synced 2026-04-04 11:03:14 +00:00
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:
committed by
Mark Salyzyn
parent
eecc3db929
commit
e58a053453
@ -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),
|
||||
|
||||
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user