mirror of
https://github.com/LineageOS/android_kernel_fxtec_sm6115.git
synced 2026-04-06 18:03:12 +00:00
ANDROID: GKI: power: power_supply: Add property to display skin thermal status
Add power supply property POWER_SUPPLY_PROP_SKIN_HEALTH to indicate
skin thermal status.
Signed-off-by: Sahil Chandna <chandna@codeaurora.org>
(cherry picked from commit 4c6c4e79de)
Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Bug: 150789066
Change-Id: Ib04d93cd0a74f39b23591c29c696c5a35c70291a
This commit is contained in:
committed by
Mark Salyzyn
parent
55d9887cf9
commit
554dd9d906
@ -207,6 +207,7 @@ static ssize_t power_supply_show_property(struct device *dev,
|
||||
power_supply_typec_src_rp_text[value.intval]);
|
||||
break;
|
||||
case POWER_SUPPLY_PROP_DIE_HEALTH:
|
||||
case POWER_SUPPLY_PROP_SKIN_HEALTH:
|
||||
case POWER_SUPPLY_PROP_CONNECTOR_HEALTH:
|
||||
ret = sprintf(buf, "%s\n",
|
||||
power_supply_health_text[value.intval]);
|
||||
@ -462,6 +463,7 @@ static struct device_attribute power_supply_attrs[] = {
|
||||
POWER_SUPPLY_ATTR(force_main_fcc),
|
||||
POWER_SUPPLY_ATTR(comp_clamp_level),
|
||||
POWER_SUPPLY_ATTR(adapter_cc_mode),
|
||||
POWER_SUPPLY_ATTR(skin_health),
|
||||
/* Charge pump properties */
|
||||
POWER_SUPPLY_ATTR(cp_status1),
|
||||
POWER_SUPPLY_ATTR(cp_status2),
|
||||
|
||||
@ -334,6 +334,7 @@ enum power_supply_property {
|
||||
POWER_SUPPLY_PROP_FORCE_MAIN_FCC,
|
||||
POWER_SUPPLY_PROP_COMP_CLAMP_LEVEL,
|
||||
POWER_SUPPLY_PROP_ADAPTER_CC_MODE,
|
||||
POWER_SUPPLY_PROP_SKIN_HEALTH,
|
||||
/* Charge pump properties */
|
||||
POWER_SUPPLY_PROP_CP_STATUS1,
|
||||
POWER_SUPPLY_PROP_CP_STATUS2,
|
||||
|
||||
Reference in New Issue
Block a user