ANDROID: GKI: power: supply: Add POWER_SUPPLY_PROP_PTMC_ID

Partially taken from commit e13cae32a425959e886fb91e83205a398285b708
("p9221_charger: add attribute for read PTMC ID")

Signed-off-by: YiHsiang Peng <yihsiangpeng@google.com>
Bug: 145607449
(cherry picked commit e13cae32a425959e886fb91e83205a398285b708)
Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Bug: 150789066
Change-Id: I6a5d83f8e4c32f183ad2360f4b9fba586ad8e48f
This commit is contained in:
Mark Salyzyn
2020-02-24 14:40:49 -08:00
parent 4f70929449
commit aadbdeecbd
2 changed files with 2 additions and 0 deletions

View File

@ -499,6 +499,7 @@ static struct device_attribute power_supply_attrs[] = {
POWER_SUPPLY_ATTR(charge_counter_ext),
/* Properties of type `const char *' */
POWER_SUPPLY_ATTR(model_name),
POWER_SUPPLY_ATTR(ptmc_id),
POWER_SUPPLY_ATTR(manufacturer),
POWER_SUPPLY_ATTR(battery_type),
POWER_SUPPLY_ATTR(cycle_counts),

View File

@ -364,6 +364,7 @@ enum power_supply_property {
POWER_SUPPLY_PROP_CHARGE_COUNTER_EXT,
/* Properties of type `const char *' */
POWER_SUPPLY_PROP_MODEL_NAME,
POWER_SUPPLY_PROP_PTMC_ID,
POWER_SUPPLY_PROP_MANUFACTURER,
POWER_SUPPLY_PROP_BATTERY_TYPE,
POWER_SUPPLY_PROP_CYCLE_COUNTS,