From eb8700f68502937ef31ccce43a0d9524755e6269 Mon Sep 17 00:00:00 2001 From: Nicholas Troast Date: Tue, 20 Jun 2017 16:25:57 -0700 Subject: power_supply: add CC_STEP and CC_STEP_SEL properties There are several algorithms which modify the charge current in steps across the charge cycle. CC_STEP is used to notify of all the upcoming charge currents. The CC_STEP_SEL property is used to select the index of the CC_STEP to read or modify using the CC_STEP property. Change-Id: Ieeb533b758035c1c408cdfd68f001374bf0987a5 Signed-off-by: Nicholas Troast Signed-off-by: Abhijeet Dharmapurikar --- include/linux/power_supply.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/linux') diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h index b584e353306d..6721be921d87 100644 --- a/include/linux/power_supply.h +++ b/include/linux/power_supply.h @@ -249,6 +249,8 @@ enum power_supply_property { POWER_SUPPLY_PROP_HW_CURRENT_MAX, POWER_SUPPLY_PROP_REAL_TYPE, POWER_SUPPLY_PROP_PR_SWAP, + POWER_SUPPLY_PROP_CC_STEP, + POWER_SUPPLY_PROP_CC_STEP_SEL, /* Local extensions of type int64_t */ POWER_SUPPLY_PROP_CHARGE_COUNTER_EXT, /* Properties of type `const char *' */ -- cgit v1.2.3