mirror of
https://github.com/genesi/linux-legacy.git
synced 2026-07-08 17:56:11 +00:00
power_supply: add health properties as per SBS 1.10a
This commit is contained in:
@@ -46,6 +46,8 @@ static ssize_t power_supply_show_property(struct device *dev,
|
||||
static char *health_text[] = {
|
||||
"Unknown", "Good", "Overheat", "Dead", "Over voltage",
|
||||
"Unspecified failure", "Cold",
|
||||
/* SBS 1.10a */
|
||||
"Capacity Re-learn Cycle Requested", "Uninitialized",
|
||||
};
|
||||
static char *technology_text[] = {
|
||||
"Unknown", "NiMH", "Li-ion", "Li-poly", "LiFe", "NiCd",
|
||||
|
||||
@@ -46,6 +46,8 @@ enum {
|
||||
POWER_SUPPLY_HEALTH_OVERVOLTAGE,
|
||||
POWER_SUPPLY_HEALTH_UNSPEC_FAILURE,
|
||||
POWER_SUPPLY_HEALTH_COLD,
|
||||
POWER_SUPPLY_HEALTH_RELEARN_REQUEST,
|
||||
POWER_SUPPLY_HEALTH_UNINITIALIZED,
|
||||
};
|
||||
|
||||
enum {
|
||||
|
||||
Reference in New Issue
Block a user