Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Mark Brown and committed by
Samuel Ortiz
7e386e6e b797a555

+2 -1
+1 -1
drivers/power/power_supply_sysfs.c
··· 45 45 }; 46 46 static char *health_text[] = { 47 47 "Unknown", "Good", "Overheat", "Dead", "Over voltage", 48 - "Unspecified failure" 48 + "Unspecified failure", "Cold", 49 49 }; 50 50 static char *technology_text[] = { 51 51 "Unknown", "NiMH", "Li-ion", "Li-poly", "LiFe", "NiCd",
+1
include/linux/power_supply.h
··· 45 45 POWER_SUPPLY_HEALTH_DEAD, 46 46 POWER_SUPPLY_HEALTH_OVERVOLTAGE, 47 47 POWER_SUPPLY_HEALTH_UNSPEC_FAILURE, 48 + POWER_SUPPLY_HEALTH_COLD, 48 49 }; 49 50 50 51 enum {