Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3eef5574 authored by AleX Pelosi's avatar AleX Pelosi Committed by Mark Salyzyn
Browse files

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: default avatarAleX Pelosi <apelosi@google.com>
Signed-off-by: default avatarJack Wu <wjack@google.com>
Bug: 139264914
Test: recompile
(cherry picked from commit 67fd59eccfe2db28d9167d5aeef8f6dd001f3cb1)
Signed-off-by: default avatarMark Salyzyn <salyzyn@google.com>
Bug: 150789066
Change-Id: I5df44a650b10a078cd79842fff32e2ab92c0195d
parent aadbdeec
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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),
+1 −0
Original line number Diff line number Diff line
@@ -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,