Revert "power: remove POWER_SUPPLY_PROP_CAPACITY_LEVEL"
This reverts commit8efe444038
and4cbc76eadf
. Richard@laptop.org was apparently using CAPACITY_LEVEL for debugging battery/EC problems, and was upset that it was removed. This readds it. Conflicts: Documentation/power_supply_class.txt Signed-off-by: Andres Salomon <dilinger@collabora.co.uk> Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
This commit is contained in:

committed by
Anton Vorontsov

parent
bfdb46ce84
commit
b294a290d2
@@ -58,6 +58,15 @@ enum {
|
||||
POWER_SUPPLY_TECHNOLOGY_LiMn,
|
||||
};
|
||||
|
||||
enum {
|
||||
POWER_SUPPLY_CAPACITY_LEVEL_UNKNOWN = 0,
|
||||
POWER_SUPPLY_CAPACITY_LEVEL_CRITICAL,
|
||||
POWER_SUPPLY_CAPACITY_LEVEL_LOW,
|
||||
POWER_SUPPLY_CAPACITY_LEVEL_NORMAL,
|
||||
POWER_SUPPLY_CAPACITY_LEVEL_HIGH,
|
||||
POWER_SUPPLY_CAPACITY_LEVEL_FULL,
|
||||
};
|
||||
|
||||
enum power_supply_property {
|
||||
/* Properties of type `int' */
|
||||
POWER_SUPPLY_PROP_STATUS = 0,
|
||||
@@ -89,6 +98,7 @@ enum power_supply_property {
|
||||
POWER_SUPPLY_PROP_ENERGY_NOW,
|
||||
POWER_SUPPLY_PROP_ENERGY_AVG,
|
||||
POWER_SUPPLY_PROP_CAPACITY, /* in percents! */
|
||||
POWER_SUPPLY_PROP_CAPACITY_LEVEL,
|
||||
POWER_SUPPLY_PROP_TEMP,
|
||||
POWER_SUPPLY_PROP_TEMP_AMBIENT,
|
||||
POWER_SUPPLY_PROP_TIME_TO_EMPTY_NOW,
|
||||
|
Reference in New Issue
Block a user