<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-toradex.git/drivers/power/apm_power.c, branch v2.6.32.45</title>
<subtitle>Linux kernel for Apalis and Colibri modules</subtitle>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/'/>
<entry>
<title>apm_power: Add missing break statement</title>
<updated>2010-09-20T20:18:13+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.toradex.cn/cgit/linux-toradex.git/commit/?id=198aa4b040aa00b4c9de5314da2338ff20ab1f73'/>
<id>198aa4b040aa00b4c9de5314da2338ff20ab1f73</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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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;

</pre>
</div>
</content>
</entry>
<entry>
<title>Driver Core: add ability for class_for_each_device to start in middle of list</title>
<updated>2008-07-22T04:54:47+00:00</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@suse.de</email>
</author>
<published>2008-05-22T21:21:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=93562b537659fc0f63920fd4d9d24f54e434f4c4'/>
<id>93562b537659fc0f63920fd4d9d24f54e434f4c4</id>
<content type='text'>
This mirrors the functionality that driver_for_each_device has as well.

We add a start variable, and all callers of the function are fixed up at
the same time.

The block layer will be using this new functionality in a follow-on
patch.


Cc: Kay Sievers &lt;kay.sievers@vrfy.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This mirrors the functionality that driver_for_each_device has as well.

We add a start variable, and all callers of the function are fixed up at
the same time.

The block layer will be using this new functionality in a follow-on
patch.


Cc: Kay Sievers &lt;kay.sievers@vrfy.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>apm_power: check I.intval for zero value, we use it as the divisor</title>
<updated>2008-02-01T23:44:34+00:00</updated>
<author>
<name>Anton Vorontsov</name>
<email>cbouatmailru@gmail.com</email>
</author>
<published>2008-01-12T23:44:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=e91926e9ea9073d8ce95b74602e8c2d775f5a793'/>
<id>e91926e9ea9073d8ce95b74602e8c2d775f5a793</id>
<content type='text'>
Signed-off-by: Anton Vorontsov &lt;cbou@mail.ru&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Anton Vorontsov &lt;cbou@mail.ru&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>apm_power: support using VOLTAGE_* properties for apm calculations</title>
<updated>2008-02-01T23:44:34+00:00</updated>
<author>
<name>Dmitry Baryshkov</name>
<email>dbaryshkov@gmail.com</email>
</author>
<published>2008-01-12T23:39:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=dffd28a13a439e672c735d3fc87844d28cbacc65'/>
<id>dffd28a13a439e672c735d3fc87844d28cbacc65</id>
<content type='text'>
It's pretty dummy, but useful for batteries for which we can only
get voltages.

Signed-off-by: Dmitry Baryshkov &lt;dbaryshkov@gmail.com&gt;
Signed-off-by: Anton Vorontsov &lt;cbou@mail.ru&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It's pretty dummy, but useful for batteries for which we can only
get voltages.

Signed-off-by: Dmitry Baryshkov &lt;dbaryshkov@gmail.com&gt;
Signed-off-by: Anton Vorontsov &lt;cbou@mail.ru&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>power supply : use class iteration api</title>
<updated>2008-01-25T04:40:44+00:00</updated>
<author>
<name>Dave Young</name>
<email>hidave.darkstar@gmail.com</email>
</author>
<published>2008-01-22T05:58:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=443cad920a1c6894da3de917ce02a194cc6d80ea'/>
<id>443cad920a1c6894da3de917ce02a194cc6d80ea</id>
<content type='text'>
Convert to use the class iteration api.

Signed-off-by: Dave Young &lt;hidave.darkstar@gmail.com&gt;
Cc: Anton Vorontsov &lt;cbou@mail.ru&gt;
Cc: David Woodhouse &lt;dwmw2@infradead.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Convert to use the class iteration api.

Signed-off-by: Dave Young &lt;hidave.darkstar@gmail.com&gt;
Cc: Anton Vorontsov &lt;cbou@mail.ru&gt;
Cc: David Woodhouse &lt;dwmw2@infradead.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>apm_power: calculate to_full/to_empty time using energy</title>
<updated>2007-10-04T21:05:00+00:00</updated>
<author>
<name>Anton Vorontsov</name>
<email>cbou@mail.ru</email>
</author>
<published>2007-10-04T21:05:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=2a721dfc8c677588fc98d818dfad3354081c6ddb'/>
<id>2a721dfc8c677588fc98d818dfad3354081c6ddb</id>
<content type='text'>
This patch adds ability to calculate time using energy.
Needed to calculate time_to_full for PMU batteries.

Signed-off-by: Anton Vorontsov &lt;cbou@mail.ru&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch adds ability to calculate time using energy.
Needed to calculate time_to_full for PMU batteries.

Signed-off-by: Anton Vorontsov &lt;cbou@mail.ru&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>apm_power: improve battery finding algorithm</title>
<updated>2007-10-04T21:05:00+00:00</updated>
<author>
<name>Anton Vorontsov</name>
<email>cbou@mail.ru</email>
</author>
<published>2007-10-04T21:05:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=d385376f0d75fdbeed8041ed6baf5cb4a1578ffb'/>
<id>d385376f0d75fdbeed8041ed6baf5cb4a1578ffb</id>
<content type='text'>
Prior to this patch, if use_for_apm unspecified, apm_power able
to choice batteries according to their charge only.

This patch adds ability to choice batteries according to their charge,
energy, use_for_apm flag, and fallback to any battery if it failed to
decide.

Patch is mandatory to report Apple PMU batteries through legacy
/proc/apm interface using power supply class.

Signed-off-by: Anton Vorontsov &lt;cbou@mail.ru&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Prior to this patch, if use_for_apm unspecified, apm_power able
to choice batteries according to their charge only.

This patch adds ability to choice batteries according to their charge,
energy, use_for_apm flag, and fallback to any battery if it failed to
decide.

Patch is mandatory to report Apple PMU batteries through legacy
/proc/apm interface using power supply class.

Signed-off-by: Anton Vorontsov &lt;cbou@mail.ru&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>apm_power: fix obviously wrong logic for time reporting</title>
<updated>2007-10-04T21:04:59+00:00</updated>
<author>
<name>Anton Vorontsov</name>
<email>cbou@mail.ru</email>
</author>
<published>2007-10-04T21:04:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=cd1ebcc0ef620e8e7c5e399bf9e123135e4f24a4'/>
<id>cd1ebcc0ef620e8e7c5e399bf9e123135e4f24a4</id>
<content type='text'>
Prior to this patch, apm_power was unable to report "to empty"/"to full"
time for batteries that hardware-report these values, such as
Apple PMU batteries.

Signed-off-by: Anton Vorontsov &lt;cbou@mail.ru&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Prior to this patch, apm_power was unable to report "to empty"/"to full"
time for batteries that hardware-report these values, such as
Apple PMU batteries.

Signed-off-by: Anton Vorontsov &lt;cbou@mail.ru&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Power supply class and drivers: remove non obligatory return statements</title>
<updated>2007-07-15T18:32:38+00:00</updated>
<author>
<name>Anton Vorontsov</name>
<email>cbou@mail.ru</email>
</author>
<published>2007-07-15T01:18:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=7b3d54a8c30d2c524889a05d0c1334813d516b93'/>
<id>7b3d54a8c30d2c524889a05d0c1334813d516b93</id>
<content type='text'>
Per Jeff Garzik request.

Signed-off-by: Jeff Garzik &lt;jeff@garzik.org&gt;
Signed-off-by: Anton Vorontsov &lt;cbou@mail.ru&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Per Jeff Garzik request.

Signed-off-by: Jeff Garzik &lt;jeff@garzik.org&gt;
Signed-off-by: Anton Vorontsov &lt;cbou@mail.ru&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[BATTERY] APM emulation driver for class batteries</title>
<updated>2007-07-10T10:26:08+00:00</updated>
<author>
<name>Anton Vorontsov</name>
<email>cbou@mail.ru</email>
</author>
<published>2007-05-03T20:43:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=3788ec932bfd4942831e9a5034191509a2e11924'/>
<id>3788ec932bfd4942831e9a5034191509a2e11924</id>
<content type='text'>
Signed-off-by: Eugeny Boger &lt;eugenyboger@dgap.mipt.ru&gt;
Signed-off-by: Anton Vorontsov &lt;cbou@mail.ru&gt;
Signed-off-by: David Woodhouse &lt;dwmw2@infradead.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Eugeny Boger &lt;eugenyboger@dgap.mipt.ru&gt;
Signed-off-by: Anton Vorontsov &lt;cbou@mail.ru&gt;
Signed-off-by: David Woodhouse &lt;dwmw2@infradead.org&gt;
</pre>
</div>
</content>
</entry>
</feed>
