ANDROID: GKI: power: supply: add CHARGE_CHARGER_STATE property

POWER_SUPPLY_PROP_CHARGE_CHARGER_STATE and charge_charger_state
  property are used from charging code to trigger the calculation
  of charging current and charging voltage

Signed-off-by: AleX Pelosi <apelosi@google.com>
Signed-off-by: Jack Wu <wjack@google.com>
Bug: 139264914
Test: recompile
(cherry picked from commit 67fd59eccfe2db28d9167d5aeef8f6dd001f3cb1)
Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Bug: 150789066
Change-Id: I5df44a650b10a078cd79842fff32e2ab92c0195d
This commit is contained in:
AleX Pelosi
2018-10-12 14:48:10 -07:00
committed by Mark Salyzyn
parent aadbdeecbd
commit 3eef5574c5
2 changed files with 2 additions and 0 deletions

View File

@ -497,6 +497,7 @@ static struct device_attribute power_supply_attrs[] = {
POWER_SUPPLY_ATTR(cp_ilim),
/* Local extensions of type int64_t */
POWER_SUPPLY_ATTR(charge_counter_ext),
POWER_SUPPLY_ATTR(charge_charger_state),
/* Properties of type `const char *' */
POWER_SUPPLY_ATTR(model_name),
POWER_SUPPLY_ATTR(ptmc_id),

View File

@ -362,6 +362,7 @@ enum power_supply_property {
POWER_SUPPLY_PROP_CP_ILIM,
/* Local extensions of type int64_t */
POWER_SUPPLY_PROP_CHARGE_COUNTER_EXT,
POWER_SUPPLY_PROP_CHARGE_CHARGER_STATE,
/* Properties of type `const char *' */
POWER_SUPPLY_PROP_MODEL_NAME,
POWER_SUPPLY_PROP_PTMC_ID,