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

Commit 554dd9d9 authored by Sahil Chandna's avatar Sahil Chandna Committed by Mark Salyzyn
Browse files

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: default avatarSahil Chandna <chandna@codeaurora.org>
(cherry picked from commit 4c6c4e79)
Signed-off-by: default avatarMark Salyzyn <salyzyn@google.com>
Bug: 150789066
Change-Id: Ib04d93cd0a74f39b23591c29c696c5a35c70291a
parent 55d9887c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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),
+1 −0
Original line number Diff line number Diff line
@@ -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,