ANDROID: GKI: power-supply: Add CC_SOC power supply property

Add CC_SOC power supply property to expose cc soc status from the
qgauge and fuel gauge drivers.

Signed-off-by: Umang Agrawal <uagrawal@codeaurora.org>
(cherry picked from commit 5e3a95732d)
Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Bug: 150789066
Change-Id: Iacfc77d97ce14c783338ad6ced0c7356a1a63c83
This commit is contained in:
Umang Agrawal
2018-11-16 17:03:43 +05:30
committed by Mark Salyzyn
parent 48c932ac02
commit eecc3db929
2 changed files with 2 additions and 0 deletions

View File

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

View File

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