summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorNicholas Troast <ntroast@codeaurora.org>2016-07-28 13:42:49 -0700
committerNicholas Troast <ntroast@codeaurora.org>2016-08-01 10:29:26 -0700
commit5bd071c6475e47ad835b3bc3980c3b5a3aabe9c4 (patch)
tree7cb8b361f6e44e0fd738dc09eb691b85a4927f41 /include/linux
parent2566204c8d1d65bac5df79262a6a22c40a5b0b0f (diff)
power_supply: add CHARGER_TEMP and CHARGER_TEMP_MAX properties
CHARGER_TEMP reflects the temperature of the charging chip, and CHARGER_TEMP_MAX reflects the temperature threshold at which the hardware will take action to reduce the temperature of the charger. Change-Id: I9cba8e370c753ac5aa33252fce0ea446f061b4c0 Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/power_supply.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h
index b081a56e250f..7d1e374e176c 100644
--- a/include/linux/power_supply.h
+++ b/include/linux/power_supply.h
@@ -214,6 +214,8 @@ enum power_supply_property {
POWER_SUPPLY_PROP_TYPEC_POWER_ROLE,
POWER_SUPPLY_PROP_PD_ALLOWED,
POWER_SUPPLY_PROP_PD_ACTIVE,
+ POWER_SUPPLY_PROP_CHARGER_TEMP,
+ POWER_SUPPLY_PROP_CHARGER_TEMP_MAX,
/* Local extensions of type int64_t */
POWER_SUPPLY_PROP_CHARGE_COUNTER_EXT,
/* Properties of type `const char *' */