Commit 601c2a54 authored by Sebastian Reichel's avatar Sebastian Reichel
Browse files

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: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent feabe49e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -205,7 +205,7 @@ Description:
		Valid values: "Unknown", "Good", "Overheat", "Dead",
			      "Over voltage", "Unspecified failure", "Cold",
			      "Watchdog timer expire", "Safety timer expire",
			      "Over current"
			      "Over current", "Calibration required"

What:		/sys/class/power_supply/<supply_name>/precharge_current
Date:		June 2017
+1 −0
Original line number Diff line number Diff line
@@ -100,6 +100,7 @@ static const char * const POWER_SUPPLY_HEALTH_TEXT[] = {
	[POWER_SUPPLY_HEALTH_WATCHDOG_TIMER_EXPIRE] = "Watchdog timer expire",
	[POWER_SUPPLY_HEALTH_SAFETY_TIMER_EXPIRE]   = "Safety timer expire",
	[POWER_SUPPLY_HEALTH_OVERCURRENT]	    = "Over current",
	[POWER_SUPPLY_HEALTH_CALIBRATION_REQUIRED]  = "Calibration required",
};

static const char * const POWER_SUPPLY_TECHNOLOGY_TEXT[] = {
+1 −0
Original line number Diff line number Diff line
@@ -61,6 +61,7 @@ enum {
	POWER_SUPPLY_HEALTH_WATCHDOG_TIMER_EXPIRE,
	POWER_SUPPLY_HEALTH_SAFETY_TIMER_EXPIRE,
	POWER_SUPPLY_HEALTH_OVERCURRENT,
	POWER_SUPPLY_HEALTH_CALIBRATION_REQUIRED,
};

enum {