mirror of
https://github.com/LineageOS/android_kernel_fxtec_sm6115.git
synced 2026-04-06 18:03:12 +00:00
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:
committed by
Mark Salyzyn
parent
aadbdeecbd
commit
3eef5574c5
@ -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),
|
||||
|
||||
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user