ANDROID: GKI: power-supply: add ADAPTER_DETAILS power supply property

store adapter details (type and capabilities)

Signed-off-by: AleX Pelosi <apelosi@google.com>
Signed-off-by: Jack Wu <wjack@google.com>
Bug: 139264914
Test: recompile
(cherry picked from commit e3328e4bfccc655851529309622004326eff53b3)
Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Bug: 150789066
Change-Id: I6023dee39d393f89e1f1f56f36ccbd2d8ac41ff2
This commit is contained in:
AleX Pelosi
2019-01-17 11:10:34 -08:00
committed by Mark Salyzyn
parent e90672c301
commit 6c9a8542ce
2 changed files with 2 additions and 0 deletions

View File

@ -465,6 +465,7 @@ static struct device_attribute power_supply_attrs[] = {
POWER_SUPPLY_ATTR(adapter_cc_mode),
POWER_SUPPLY_ATTR(skin_health),
POWER_SUPPLY_ATTR(charge_disable),
POWER_SUPPLY_ATTR(adapter_details),
/* Charge pump properties */
POWER_SUPPLY_ATTR(cp_status1),
POWER_SUPPLY_ATTR(cp_status2),

View File

@ -336,6 +336,7 @@ enum power_supply_property {
POWER_SUPPLY_PROP_ADAPTER_CC_MODE,
POWER_SUPPLY_PROP_SKIN_HEALTH,
POWER_SUPPLY_PROP_CHARGE_DISABLE,
POWER_SUPPLY_PROP_ADAPTER_DETAILS,
/* Charge pump properties */
POWER_SUPPLY_PROP_CP_STATUS1,
POWER_SUPPLY_PROP_CP_STATUS2,