<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/drivers/power, branch linux-2.6.35.y</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=linux-2.6.35.y</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=linux-2.6.35.y'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2011-03-31T18:57:50+00:00</updated>
<entry>
<title>ds2760_battery: Fix calculation of time_to_empty_now</title>
<updated>2011-03-31T18:57:50+00:00</updated>
<author>
<name>Sven Neumann</name>
<email>s.neumann@raumfeld.com</email>
</author>
<published>2010-11-12T10:36:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=2be4ae77eca91af0f0577f1a174f3eae0797df2b'/>
<id>urn:sha1:2be4ae77eca91af0f0577f1a174f3eae0797df2b</id>
<content type='text'>
commit 86af95039b69a90db15294eb1f9c147f1df0a8ea upstream.

A check against division by zero was modified in commit b0525b48.
Since this change time_to_empty_now is always reported as zero
while the battery is discharging and as a negative value while
the battery is charging. This is because current is negative while
the battery is discharging.

Fix the check introduced by commit b0525b48 so that time_to_empty_now
is reported correctly during discharge and as zero while charging.

Signed-off-by: Sven Neumann &lt;s.neumann@raumfeld.com&gt;
Acked-by: Daniel Mack &lt;daniel@caiaq.de&gt;
Signed-off-by: Anton Vorontsov &lt;cbouatmailru@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
Signed-off-by: Andi Kleen &lt;ak@linux.intel.com&gt;

</content>
</entry>
<entry>
<title>olpc_battery: Fix endian neutral breakage for s16 values</title>
<updated>2010-12-14T22:40:05+00:00</updated>
<author>
<name>Richard A. Smith</name>
<email>richard@laptop.org</email>
</author>
<published>2010-09-25T18:19:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=992c78f9f294b8dfc72c783fce9b83151407cf74'/>
<id>urn:sha1:992c78f9f294b8dfc72c783fce9b83151407cf74</id>
<content type='text'>
commit 7cfbb29466633e6ecdc14f76a693c8478c2b22af upstream.

When the driver was updated to be endian neutral (8e9c7716c)
the signed part of the s16 values was lost.  This is because be16_to_cpu()
returns an unsigned value.  This patch casts the values back to a s16
number prior to the the implicit cast up to an int.

Signed-off-by: Richard A. Smith &lt;richard@laptop.org&gt;
Signed-off-by: Daniel Drake &lt;dsd@laptop.org&gt;
Signed-off-by: Anton Vorontsov &lt;cbouatmailru@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
Signed-off-by: Andi Kleen &lt;ak@linux.intel.com&gt;

</content>
</entry>
<entry>
<title>apm_power: Add missing break statement</title>
<updated>2010-09-20T20:36:46+00:00</updated>
<author>
<name>Anton Vorontsov</name>
<email>cbouatmailru@gmail.com</email>
</author>
<published>2010-09-07T20:10:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=1a5029d51d4a82c05596b317be20a2c660f68853'/>
<id>urn:sha1:1a5029d51d4a82c05596b317be20a2c660f68853</id>
<content type='text'>
commit 1d220334d6a8a711149234dc5f98d34ae02226b8 upstream.

The missing break statement causes wrong capacity calculation for
batteries that report energy.

Reported-by: d binderman &lt;dcb314@hotmail.com&gt;
Signed-off-by: Anton Vorontsov &lt;cbouatmailru@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>Merge git://git.infradead.org/users/cbou/battery-2.6.35</title>
<updated>2010-07-27T16:22:55+00:00</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2010-07-27T16:22:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=02e7cce2bc3ac82b971d1efe489f23ca0b6e1d4a'/>
<id>urn:sha1:02e7cce2bc3ac82b971d1efe489f23ca0b6e1d4a</id>
<content type='text'>
* git://git.infradead.org/users/cbou/battery-2.6.35:
  ds2782_battery: Rename get_current to fix build failure / name conflict
</content>
</entry>
<entry>
<title>Merge git://git.infradead.org/users/cbou/battery-2.6.35</title>
<updated>2010-07-20T15:22:15+00:00</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2010-07-20T15:22:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=19f0f0af097ba3138ae2780b471180512763a78f'/>
<id>urn:sha1:19f0f0af097ba3138ae2780b471180512763a78f</id>
<content type='text'>
* git://git.infradead.org/users/cbou/battery-2.6.35:
  ds2782_battery: Fix ds2782_get_capacity return value
</content>
</entry>
<entry>
<title>ds2782_battery: Fix ds2782_get_capacity return value</title>
<updated>2010-06-21T15:13:36+00:00</updated>
<author>
<name>Ryan Mallon</name>
<email>ryan@bluewatersys.com</email>
</author>
<published>2010-06-15T00:44:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=2d31757c87a741823f77daaa07eeb8d56be63943'/>
<id>urn:sha1:2d31757c87a741823f77daaa07eeb8d56be63943</id>
<content type='text'>
The ds2782_get_capacity function should return 0 on success, not the
capacity value.

Signed-off-by: Ryan Mallon &lt;ryan@bluewatersys.com&gt;
Signed-off-by: Anton Vorontsov &lt;cbouatmailru@gmail.com&gt;
</content>
</entry>
<entry>
<title>ds2782_battery: Rename get_current to fix build failure / name conflict</title>
<updated>2010-06-14T15:33:22+00:00</updated>
<author>
<name>Peter Huewe</name>
<email>peterhuewe@gmx.de</email>
</author>
<published>2010-05-12T23:54:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=eb9650d6d989f24f21232a055d8fd45f1a9dcf99'/>
<id>urn:sha1:eb9650d6d989f24f21232a055d8fd45f1a9dcf99</id>
<content type='text'>
This patch changes the name of get_current function pointer to
get_battery_current to resolve a name conflict with the get_current
macro defined in current.h.

This conflict resulted in a build-failure[1] for the sh4 arch
allyesconfig:

  drivers/power/ds2782_battery.c:216:48: error: macro "get_current"
  passed 2 arguments, but takes just

This patch fixes the issue. To be consistent the other function pointers
(_voltage,_capacity) were renamed too.

Signed-off-by: Peter Huewe &lt;peterhuewe@gmx.de&gt;
Acked-by: Ryan Mallon &lt;ryan@bluewatersys.com&gt;
Acked-by: Mike Rapoport &lt;mike@compulab.co.il&gt;
Signed-off-by: Anton Vorontsov &lt;cbouatmailru@gmail.com&gt;
</content>
</entry>
<entry>
<title>[ARM] pxa/z2: fix missing include in battery driver</title>
<updated>2010-06-13T15:55:13+00:00</updated>
<author>
<name>Marek Vasut</name>
<email>marek.vasut@gmail.com</email>
</author>
<published>2010-06-03T01:44:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=56b925fccc58cd43fc553a8302dbbdd440aef288'/>
<id>urn:sha1:56b925fccc58cd43fc553a8302dbbdd440aef288</id>
<content type='text'>
Remove redundant includes and add slab.h to fix problem with building.

Signed-off-by: Marek Vasut &lt;marek.vasut@gmail.com&gt;
Signed-off-by: Eric Miao &lt;eric.y.miao@gmail.com&gt;
</content>
</entry>
<entry>
<title>i2c: Remove all i2c_set_clientdata(client, NULL) in drivers</title>
<updated>2010-06-03T09:33:58+00:00</updated>
<author>
<name>Wolfram Sang</name>
<email>w.sang@pengutronix.de</email>
</author>
<published>2010-06-03T09:33:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=fbae3fb1546e199ab0cd185348f8124411a1ca9d'/>
<id>urn:sha1:fbae3fb1546e199ab0cd185348f8124411a1ca9d</id>
<content type='text'>
I2C drivers can use the clientdata-pointer to point to private data. As I2C
devices are not really unregistered, but merely detached from their driver, it
used to be the drivers obligation to clear this pointer during remove() or a
failed probe(). As a couple of drivers forgot to do this, it was agreed that it
was cleaner if the i2c-core does this clearance when appropriate, as there is
no guarantee for the lifetime of the clientdata-pointer after remove() anyhow.
This feature was added to the core with commit
e4a7b9b04de15f6b63da5ccdd373ffa3057a3681 to fix the faulty drivers.

As there is no need anymore to clear the clientdata-pointer, remove all current
occurrences in the drivers to simplify the code and prevent confusion.

Signed-off-by: Wolfram Sang &lt;w.sang@pengutronix.de&gt;
Acked-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Acked-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
Acked-by: Richard Purdie &lt;rpurdie@linux.intel.com&gt;
Acked-by: Dmitry Torokhov &lt;dtor@mail.ru&gt;
Signed-off-by: Jean Delvare &lt;khali@linux-fr.org&gt;
</content>
</entry>
<entry>
<title>Merge git://git.infradead.org/battery-2.6</title>
<updated>2010-05-25T15:16:34+00:00</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2010-05-25T15:16:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=4961ab934a1254b1ad9420cea0ded617b57f022b'/>
<id>urn:sha1:4961ab934a1254b1ad9420cea0ded617b57f022b</id>
<content type='text'>
* git://git.infradead.org/battery-2.6:
  power_supply: Fix regression for 'type' property
</content>
</entry>
</feed>
