]> git.baikalelectronics.ru Git - kernel.git/commit
olpc_battery: Ensure that the TRICKLE bit is checked
authorAndres Salomon <dilinger@collabora.co.uk>
Tue, 30 Jun 2009 06:16:17 +0000 (02:16 -0400)
committerAnton Vorontsov <cbouatmailru@gmail.com>
Tue, 30 Jun 2009 22:36:58 +0000 (02:36 +0400)
commit836e85cce3610ccef86c86bf7befc2f6823757b8
tree0aa3f2b43858c03a4b71d66f1bacbdf9c5065efb
parentcb03769d35c0779bb7261cf6d0c185a22944f617
olpc_battery: Ensure that the TRICKLE bit is checked

There are times when the battery is present but trickle charging,
and the EC sets only the TRICKLE bit. So we must check for the bit
when we're checking the charging/present status.

Signed-off-by: Andres Salomon <dilinger@collabora.co.uk>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
drivers/power/olpc_battery.c