c84cad3d0fbb09dbfb30336ab05181cdbe097634 |
|
29-May-2011 |
Ken O'Brien <kernel@kenobrien.org> |
apm_power: Fix style error in macros Two macros in the changed file contained complex expressions which were not enclosed by parentheses. Signed-off-by: Ken O'Brien <kernel@kenobrien.org> Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
/drivers/power/apm_power.c
|
1d220334d6a8a711149234dc5f98d34ae02226b8 |
|
07-Sep-2010 |
Anton Vorontsov <cbouatmailru@gmail.com> |
apm_power: Add missing break statement The missing break statement causes wrong capacity calculation for batteries that report energy. Reported-by: d binderman <dcb314@hotmail.com> Cc: <stable@kernel.org> Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
/drivers/power/apm_power.c
|
93562b537659fc0f63920fd4d9d24f54e434f4c4 |
|
22-May-2008 |
Greg Kroah-Hartman <gregkh@suse.de> |
Driver Core: add ability for class_for_each_device to start in middle of list 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 <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
/drivers/power/apm_power.c
|
e91926e9ea9073d8ce95b74602e8c2d775f5a793 |
|
13-Jan-2008 |
Anton Vorontsov <cbouatmailru@gmail.com> |
apm_power: check I.intval for zero value, we use it as the divisor Signed-off-by: Anton Vorontsov <cbou@mail.ru>
/drivers/power/apm_power.c
|
dffd28a13a439e672c735d3fc87844d28cbacc65 |
|
13-Jan-2008 |
Dmitry Baryshkov <dbaryshkov@gmail.com> |
apm_power: support using VOLTAGE_* properties for apm calculations It's pretty dummy, but useful for batteries for which we can only get voltages. Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com> Signed-off-by: Anton Vorontsov <cbou@mail.ru>
/drivers/power/apm_power.c
|
443cad920a1c6894da3de917ce02a194cc6d80ea |
|
22-Jan-2008 |
Dave Young <hidave.darkstar@gmail.com> |
power supply : use class iteration api Convert to use the class iteration api. Signed-off-by: Dave Young <hidave.darkstar@gmail.com> Cc: Anton Vorontsov <cbou@mail.ru> Cc: David Woodhouse <dwmw2@infradead.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
/drivers/power/apm_power.c
|
2a721dfc8c677588fc98d818dfad3354081c6ddb |
|
04-Oct-2007 |
Anton Vorontsov <cbou@mail.ru> |
apm_power: calculate to_full/to_empty time using energy This patch adds ability to calculate time using energy. Needed to calculate time_to_full for PMU batteries. Signed-off-by: Anton Vorontsov <cbou@mail.ru>
/drivers/power/apm_power.c
|
d385376f0d75fdbeed8041ed6baf5cb4a1578ffb |
|
04-Oct-2007 |
Anton Vorontsov <cbou@mail.ru> |
apm_power: improve battery finding algorithm 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 <cbou@mail.ru>
/drivers/power/apm_power.c
|
cd1ebcc0ef620e8e7c5e399bf9e123135e4f24a4 |
|
04-Oct-2007 |
Anton Vorontsov <cbou@mail.ru> |
apm_power: fix obviously wrong logic for time reporting 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 <cbou@mail.ru>
/drivers/power/apm_power.c
|
7b3d54a8c30d2c524889a05d0c1334813d516b93 |
|
15-Jul-2007 |
Anton Vorontsov <cbou@mail.ru> |
Power supply class and drivers: remove non obligatory return statements Per Jeff Garzik request. Signed-off-by: Jeff Garzik <jeff@garzik.org> Signed-off-by: Anton Vorontsov <cbou@mail.ru>
/drivers/power/apm_power.c
|
3788ec932bfd4942831e9a5034191509a2e11924 |
|
03-May-2007 |
Anton Vorontsov <cbou@mail.ru> |
[BATTERY] APM emulation driver for class batteries Signed-off-by: Eugeny Boger <eugenyboger@dgap.mipt.ru> Signed-off-by: Anton Vorontsov <cbou@mail.ru> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
/drivers/power/apm_power.c
|