mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
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: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Anton Vorontsov <cbouatmailru@gmail.com> Signed-off-by: Samuel Ortiz <sameo@openedhand.com>
This commit is contained in:
parent
b797a55519
commit
7e386e6e0e
2 changed files with 2 additions and 1 deletions
|
@ -45,7 +45,7 @@ static ssize_t power_supply_show_property(struct device *dev,
|
|||
};
|
||||
static char *health_text[] = {
|
||||
"Unknown", "Good", "Overheat", "Dead", "Over voltage",
|
||||
"Unspecified failure"
|
||||
"Unspecified failure", "Cold",
|
||||
};
|
||||
static char *technology_text[] = {
|
||||
"Unknown", "NiMH", "Li-ion", "Li-poly", "LiFe", "NiCd",
|
||||
|
|
|
@ -45,6 +45,7 @@ enum {
|
|||
POWER_SUPPLY_HEALTH_DEAD,
|
||||
POWER_SUPPLY_HEALTH_OVERVOLTAGE,
|
||||
POWER_SUPPLY_HEALTH_UNSPEC_FAILURE,
|
||||
POWER_SUPPLY_HEALTH_COLD,
|
||||
};
|
||||
|
||||
enum {
|
||||
|
|
Loading…
Reference in a new issue