]> git.karo-electronics.de Git - linux-beck.git/commit
olpc_battery: Add support for CHARGE_NOW
authorSascha Silbe <sascha-pgp@silbe.org>
Fri, 10 Dec 2010 22:05:20 +0000 (23:05 +0100)
committerAnton Vorontsov <cbouatmailru@gmail.com>
Wed, 12 Jan 2011 17:29:00 +0000 (20:29 +0300)
commit20fd9830ccc685adce65ba89ffc3ca5426a2b064
treeedd1222e5b18717bea107fa1f39c27d7a9d3b822
parentb202a5e6c94d8c43ade5adb97e87734cc4f4f228
olpc_battery: Add support for CHARGE_NOW

CHARGE_NOW is needed by some user space software (read: UPower) for
internal calculations.

This patch violates the power supply class definition (as we already
do for CAPACITY though it isn't as obvious there), but this is the best
we can do without adding rather sophisticated algorithms to either the EC
or UPower.

Signed-off-by: Sascha Silbe <sascha-pgp@silbe.org>
Signed-off-by: Paul Fox <pgf@laptop.org>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
drivers/power/olpc_battery.c