Some chargers can keep the system powered from the mains even when no
battery is present. It this case none of the currently defined health
statuses applies. Add a new status to report that no battery is present.
Suggested-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
                              "Over voltage", "Unspecified failure", "Cold",
                              "Watchdog timer expire", "Safety timer expire",
                              "Over current", "Calibration required", "Warm",
-                             "Cool", "Hot"
+                             "Cool", "Hot", "No battery"
 
 What:          /sys/class/power_supply/<supply_name>/precharge_current
 Date:          June 2017
 
        [POWER_SUPPLY_HEALTH_WARM]                  = "Warm",
        [POWER_SUPPLY_HEALTH_COOL]                  = "Cool",
        [POWER_SUPPLY_HEALTH_HOT]                   = "Hot",
+       [POWER_SUPPLY_HEALTH_NO_BATTERY]            = "No battery",
 };
 
 static const char * const POWER_SUPPLY_TECHNOLOGY_TEXT[] = {
 
        POWER_SUPPLY_HEALTH_WARM,
        POWER_SUPPLY_HEALTH_COOL,
        POWER_SUPPLY_HEALTH_HOT,
+       POWER_SUPPLY_HEALTH_NO_BATTERY,
 };
 
 enum {