diff options
author | Anton Vorontsov <cbouatmailru@gmail.com> | 2010-05-18 15:49:51 -0400 |
---|---|---|
committer | Anton Vorontsov <cbouatmailru@gmail.com> | 2010-05-19 04:14:28 -0400 |
commit | 5f487cd34f4337f9bc27ca19da72a39d1b0a0ab4 (patch) | |
tree | f3204e0cf64a7202c42d1f397fd978ccd61f8225 /include/linux/power_supply.h | |
parent | a1e50fd4452b2ed57376ece465a17276b59fad9c (diff) |
power_supply: Use attribute groups
This fixes a race between power supply device and initial
attributes creation, plus makes it possible to implement
writable properties.
[Daniel Mack - removed superflous return statement
and dropped .mode attribute from POWER_SUPPLY_ATTR]
Suggested-by: Greg KH <gregkh@suse.de>
Suggested-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
Tested-by: Daniel Mack <daniel@caiaq.de>
Diffstat (limited to 'include/linux/power_supply.h')
-rw-r--r-- | include/linux/power_supply.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h index ebd2b8fb00d0..c5f73a3ab3ab 100644 --- a/include/linux/power_supply.h +++ b/include/linux/power_supply.h | |||
@@ -114,6 +114,7 @@ enum power_supply_property { | |||
114 | POWER_SUPPLY_PROP_TIME_TO_EMPTY_AVG, | 114 | POWER_SUPPLY_PROP_TIME_TO_EMPTY_AVG, |
115 | POWER_SUPPLY_PROP_TIME_TO_FULL_NOW, | 115 | POWER_SUPPLY_PROP_TIME_TO_FULL_NOW, |
116 | POWER_SUPPLY_PROP_TIME_TO_FULL_AVG, | 116 | POWER_SUPPLY_PROP_TIME_TO_FULL_AVG, |
117 | POWER_SUPPLY_PROP_TYPE, /* use power_supply.type instead */ | ||
117 | /* Properties of type `const char *' */ | 118 | /* Properties of type `const char *' */ |
118 | POWER_SUPPLY_PROP_MODEL_NAME, | 119 | POWER_SUPPLY_PROP_MODEL_NAME, |
119 | POWER_SUPPLY_PROP_MANUFACTURER, | 120 | POWER_SUPPLY_PROP_MANUFACTURER, |