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

power: supply: core: add POWER_SUPPLY_HEALTH_CALIBRATION_REQUIRED

Some battery fuel gauges know when the battery needs to
be recalibrated before providing usable values. This
should be reported via the health property.

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>

+3 -1
+1 -1
Documentation/ABI/testing/sysfs-class-power
··· 205 205 Valid values: "Unknown", "Good", "Overheat", "Dead", 206 206 "Over voltage", "Unspecified failure", "Cold", 207 207 "Watchdog timer expire", "Safety timer expire", 208 - "Over current" 208 + "Over current", "Calibration required" 209 209 210 210 What: /sys/class/power_supply/<supply_name>/precharge_current 211 211 Date: June 2017
+1
drivers/power/supply/power_supply_sysfs.c
··· 100 100 [POWER_SUPPLY_HEALTH_WATCHDOG_TIMER_EXPIRE] = "Watchdog timer expire", 101 101 [POWER_SUPPLY_HEALTH_SAFETY_TIMER_EXPIRE] = "Safety timer expire", 102 102 [POWER_SUPPLY_HEALTH_OVERCURRENT] = "Over current", 103 + [POWER_SUPPLY_HEALTH_CALIBRATION_REQUIRED] = "Calibration required", 103 104 }; 104 105 105 106 static const char * const POWER_SUPPLY_TECHNOLOGY_TEXT[] = {
+1
include/linux/power_supply.h
··· 61 61 POWER_SUPPLY_HEALTH_WATCHDOG_TIMER_EXPIRE, 62 62 POWER_SUPPLY_HEALTH_SAFETY_TIMER_EXPIRE, 63 63 POWER_SUPPLY_HEALTH_OVERCURRENT, 64 + POWER_SUPPLY_HEALTH_CALIBRATION_REQUIRED, 64 65 }; 65 66 66 67 enum {