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

Commit 7e386e6e authored by Mark Brown's avatar Mark Brown Committed by Samuel Ortiz
Browse files

power_supply: Add cold to the POWER_SUPPLY_HEALTH report values



Some systems are able to report problems with batteries being under
temperature.

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: default avatarAnton Vorontsov <cbouatmailru@gmail.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@openedhand.com>
parent b797a555
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -45,7 +45,7 @@ static ssize_t power_supply_show_property(struct device *dev,
	};
	};
	static char *health_text[] = {
	static char *health_text[] = {
		"Unknown", "Good", "Overheat", "Dead", "Over voltage",
		"Unknown", "Good", "Overheat", "Dead", "Over voltage",
		"Unspecified failure"
		"Unspecified failure", "Cold",
	};
	};
	static char *technology_text[] = {
	static char *technology_text[] = {
		"Unknown", "NiMH", "Li-ion", "Li-poly", "LiFe", "NiCd",
		"Unknown", "NiMH", "Li-ion", "Li-poly", "LiFe", "NiCd",
+1 −0
Original line number Original line Diff line number Diff line
@@ -45,6 +45,7 @@ enum {
	POWER_SUPPLY_HEALTH_DEAD,
	POWER_SUPPLY_HEALTH_DEAD,
	POWER_SUPPLY_HEALTH_OVERVOLTAGE,
	POWER_SUPPLY_HEALTH_OVERVOLTAGE,
	POWER_SUPPLY_HEALTH_UNSPEC_FAILURE,
	POWER_SUPPLY_HEALTH_UNSPEC_FAILURE,
	POWER_SUPPLY_HEALTH_COLD,
};
};


enum {
enum {