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

Commit 72c0fd67 authored by Sahil Chandna's avatar Sahil Chandna
Browse files

power: power_supply: Display skin health in proper format



This patch helps to display skin health status in proper format
instead of reporting integer value.

Change-Id: I3267059b42759c1902fe70e70c44bfb86936f574
Signed-off-by: default avatarSahil Chandna <chandna@codeaurora.org>
parent dc9a2b8f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -155,6 +155,9 @@ static ssize_t power_supply_show_property(struct device *dev,
	else if (off == POWER_SUPPLY_PROP_CONNECTOR_HEALTH)
		return scnprintf(buf, PAGE_SIZE, "%s\n",
			       power_supply_health_text[value.intval]);
	else if (off == POWER_SUPPLY_PROP_SKIN_HEALTH)
		return scnprintf(buf, PAGE_SIZE, "%s\n",
			       power_supply_health_text[value.intval]);
	else if (off >= POWER_SUPPLY_PROP_MODEL_NAME)
		return sprintf(buf, "%s\n", value.strval);