]> git.baikalelectronics.ru Git - kernel.git/commit
power_supply: remove capacity_level from list of sysfs attributes
authorThadeu Lima de Souza Cascardo <cascardo@minaslivre.org>
Thu, 7 Feb 2008 08:13:20 +0000 (00:13 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 7 Feb 2008 16:42:06 +0000 (08:42 -0800)
commit33ca4cf1cc7b56fe8c1b994b22f01808a6c5d302
tree215ec5236611d766a504ef60fc346c9217d8c1e5
parentfdca61fb466d7d2c0bd27a40c2a6b9bbdbe7ef83
power_supply: remove capacity_level from list of sysfs attributes

This commit:

commit 18c48c5fd43ba19342403810ca307f6cc126b675
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>
drivers/power/power_supply_sysfs.c