Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=4cbc76eadf56399cd11fb736b33c53aec9caab8c
Commit:     4cbc76eadf56399cd11fb736b33c53aec9caab8c
Parent:     b1e058da50f7938e9c9e963e978b0730bba4ad32
Author:     Thadeu Lima de Souza Cascardo <[EMAIL PROTECTED]>
AuthorDate: Thu Feb 7 00:13:20 2008 -0800
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Thu Feb 7 08:42:06 2008 -0800

    power_supply: remove capacity_level from list of sysfs attributes
    
    This commit:
    
    commit 8efe444038a205e79b38b7ad03878824901849a8
    Author: Andres Salomon <[EMAIL PROTECTED]>
    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 <[EMAIL PROTECTED]>
    Cc: David Woodhouse <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 drivers/power/power_supply_sysfs.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/drivers/power/power_supply_sysfs.c 
b/drivers/power/power_supply_sysfs.c
index d482484..13399d1 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[] = {
        POWER_SUPPLY_ATTR(energy_now),
        POWER_SUPPLY_ATTR(energy_avg),
        POWER_SUPPLY_ATTR(capacity),
-       POWER_SUPPLY_ATTR(capacity_level),
        POWER_SUPPLY_ATTR(temp),
        POWER_SUPPLY_ATTR(temp_ambient),
        POWER_SUPPLY_ATTR(time_to_empty_now),
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to