login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
February
»
7
Re: [PATCH] power_supply: Remove capacity_level from list of sysfs attributes
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Andrew Morton
Subject:
Re: [PATCH] power_supply: Remove capacity_level from list of sysfs attributes
Date: Wednesday, February 6, 2008 - 5:36 pm
On Thu, 7 Feb 2008 03:02:06 +0300 Anton Vorontsov <cbouatmailru@gmail.com> wrote:
quoted text
> On Wed, Feb 06, 2008 at 01:56:04PM -0800, Andrew Morton wrote: > > On Wed, 6 Feb 2008 08:50:18 -0200 > > Thadeu Lima de Souza Cascardo <cascardo@minaslivre.org> wrote: > > > > > On Wed, Feb 06, 2008 at 12:53:12AM -0800, Andrew Morton wrote: > > > > On Tue, 5 Feb 2008 14:13:36 -0200 Thadeu Lima de Souza Cascardo <cascardo@minaslivre.org> wrote: > > > > > > > > > --- > > > > > 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), > > > > > > > > What is the reason for making this change? > > > > > > Sorry. The following commit is the reason for this patch. > > > > > > It removes 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. > > > > > > > OK, thanks, I think I have enough material there to put together the final > > patch. > > > > Next time, please do cc the author of the change which you're fixing. And > > please do reply-to-all when working with kernel people, thanks. > > > > I tagged this fix as needed-in-2.6.24.x as well. > > Nope, I don't think 2.6.24.x needs this fix. Commit 8efe444038a205e79b, > wasn't been in 2.6.24. Only 2.6.25-rc0 affected. > > If applied to 2.6.24.x, it will break things. >
ah, OK, thanks. git timestamps considered harmful. --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[PATCH] power_supply: Remove capacity_level from list of s ...
, Thadeu Lima de Souza ...
, (Tue Feb 5, 9:13 am)
Re: [PATCH] power_supply: Remove capacity_level from list ...
, Andrew Morton
, (Wed Feb 6, 1:53 am)
Re: [PATCH] power_supply: Remove capacity_level from list ...
, Thadeu Lima de Souza ...
, (Wed Feb 6, 3:50 am)
Re: [PATCH] power_supply: Remove capacity_level from list ...
, Andrew Morton
, (Wed Feb 6, 2:56 pm)
Re: [PATCH] power_supply: Remove capacity_level from list ...
, Anton Vorontsov
, (Wed Feb 6, 5:02 pm)
Re: [PATCH] power_supply: Remove capacity_level from list ...
, Andrew Morton
, (Wed Feb 6, 5:36 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Fortier,Vincent [Montreal]
2.6.21.5 june 30th to july 1st date hang?
Jeff Dike
[ PATCH 2/6 ] UML - Formatting fixes around os_{read_write}_file callers
Liam Girdwood
[PATCH 07/13] regulator: regulator test harness
Oleg Nesterov
Re: Getting the new RxRPC patches upstream
Stefan Seyfried
Re: 2.6.19-rc5: grub is much slower resuming from suspend-to-disk than in 2.6.18
linux-netdev
:
Arnaud Ebalard
Re: [REGRESSION,BISECTED] MIPv6 support broken by f4f914b58019f0
Jan Engelhardt
Re: [PATCH iptables] extension: add xt_cpu match
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Sebastian Andrzej Siewior
[PATCH 8/8] net/emergency: remove locking from reycling pool if emergncy pools are...
David Miller
Re: [PATCH] qlcnic: dont assume NET_IP_ALIGN is 2
git
:
Jakub Narebski
Re: git on MacOSX and files with decomposed utf-8 file names
Brandon Casey
Re: Thunderbird and patches (was Re: [PATCH v2] Enable setting attach as the def...
Christian Couder
[PATCH 1/3] rev-parse: add test script for "--verify"
Ramkumar Ramachandra
Re: [GSoC update] git-remote-svn: The final one
Junio C Hamano
Re: git-rm isn't the inverse action of git-add
openbsd-misc
:
Joachim Schipper
Re: UVC Webcams
Florin Andrei
SOLVED [was: firewall is very slow, something's wrong]
Todd Alan Smith
Re: Microsoft gets the Most Secure Operating Systems award
Neal Hogan
Re: Need Advice: Thinkpad T60 or T61?
Sam Fourman Jr.
Re: Real men don't attack straw men
git-commits-head
:
Linux Kernel Mailing List
ACPI: Disable ARB_DISABLE on platforms where it is not needed
Linux Kernel Mailing List
m68knommu: add read_barrier_depends() and irqs_disabled_flags()
Linux Kernel Mailing List
[MTD] Add mtd panic_write function pointer
Linux Kernel Mailing List
[ARM] pxa: remove duplicate select statements from Kconfig
Linux Kernel Mailing List
mlx4_core: Don't read reserved fields in mlx4_QUERY_ADAPTER()
Colocation donated by:
Syndicate