aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/power
diff options
context:
space:
mode:
authorThadeu Lima de Souza Cascardo <cascardo@minaslivre.org>2008-02-07 03:13:20 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-07 11:42:06 -0500
commit4cbc76eadf56399cd11fb736b33c53aec9caab8c (patch)
tree215ec5236611d766a504ef60fc346c9217d8c1e5 /drivers/power
parentb1e058da50f7938e9c9e963e978b0730bba4ad32 (diff)
power_supply: remove capacity_level from list of sysfs attributes
This commit: commit 8efe444038a205e79b38b7ad03878824901849a8 Author: Andres Salomon <dilinger@queued.net> Date: Wed Dec 12 14:12:56 2007 -0500 power: remove POWER_SUPPLY_PROP_CAPACITY_LEVEL Removed CAPACITY_LEVEL from every other code, leaving the array with sysfs attributes with one more entry than the number of enums in power_supply.h. This leads to some attributes containing the value of the attribute right after it. For example, temp_ambient would have the value of time_to_empty_now. In my case, I had time_to_full_avg have the value which should be in model_name, when the former was usually empty. Cc: Andres Salomon <dilinger@debian.org> Cc: David Woodhouse <dwmw2@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/power_supply_sysfs.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/power/power_supply_sysfs.c b/drivers/power/power_supply_sysfs.c
index d4824840c5bf..13399d133b94 100644
--- a/drivers/power/power_supply_sysfs.c
+++ b/drivers/power/power_supply_sysfs.c
@@ -106,7 +106,6 @@ static struct device_attribute power_supply_attrs[] = {
106 POWER_SUPPLY_ATTR(energy_now), 106 POWER_SUPPLY_ATTR(energy_now),
107 POWER_SUPPLY_ATTR(energy_avg), 107 POWER_SUPPLY_ATTR(energy_avg),
108 POWER_SUPPLY_ATTR(capacity), 108 POWER_SUPPLY_ATTR(capacity),
109 POWER_SUPPLY_ATTR(capacity_level),
110 POWER_SUPPLY_ATTR(temp), 109 POWER_SUPPLY_ATTR(temp),
111 POWER_SUPPLY_ATTR(temp_ambient), 110 POWER_SUPPLY_ATTR(temp_ambient),
112 POWER_SUPPLY_ATTR(time_to_empty_now), 111 POWER_SUPPLY_ATTR(time_to_empty_now),