power: supply: core: Add POWER_SUPPLY_HEALTH_OVERCURRENT constant

Add POWER_SUPPLY_HEALTH_OVERCURRENT constant in order to allow
singalling overcurrent condition via power supply health information.

Signed-off-by: Andrey Smirnov <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Cc: Enric Balletbo Serra <[email protected]>
Cc: Chris Healy <[email protected]>
Cc: Lucas Stach <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: Guenter Roeck <[email protected]>
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Sebastian Reichel <[email protected]>
This commit is contained in:
Andrey Smirnov
2019-05-03 22:15:51 +02:00
committed by Sebastian Reichel
parent caee28498e
commit e3e83cc601
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ static const char * const power_supply_charge_type_text[] = {
static const char * const power_supply_health_text[] = {
"Unknown", "Good", "Overheat", "Dead", "Over voltage",
"Unspecified failure", "Cold", "Watchdog timer expire",
"Safety timer expire"
"Safety timer expire", "Over current"
};
static const char * const power_supply_technology_text[] = {
+1
View File
@@ -61,6 +61,7 @@ enum {
POWER_SUPPLY_HEALTH_COLD,
POWER_SUPPLY_HEALTH_WATCHDOG_TIMER_EXPIRE,
POWER_SUPPLY_HEALTH_SAFETY_TIMER_EXPIRE,
POWER_SUPPLY_HEALTH_OVERCURRENT,
};
enum {