]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
power_supply: Add cold to the POWER_SUPPLY_HEALTH report values
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 30 Nov 2008 21:43:21 +0000 (22:43 +0100)
committerSamuel Ortiz <samuel@sortiz.org>
Sun, 4 Jan 2009 11:17:39 +0000 (12:17 +0100)
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>
drivers/power/power_supply_sysfs.c
include/linux/power_supply.h

index 23ae8460f5c1a71f7b794745837799ac1fc21f25..ac01e06817fb330539a18836fa570c16597de55d 100644 (file)
@@ -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",
index f9348cba6dc11ec32ed425e4d271ba6100de43ab..8ff25e0e7f7a163f5240da47bc7bb0e850585de4 100644 (file)
@@ -45,6 +45,7 @@ enum {
        POWER_SUPPLY_HEALTH_DEAD,
        POWER_SUPPLY_HEALTH_OVERVOLTAGE,
        POWER_SUPPLY_HEALTH_UNSPEC_FAILURE,
+       POWER_SUPPLY_HEALTH_COLD,
 };
 
 enum {