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)
commit8f7e57985fa794ab6afdcd3642581d9e1fe6de31
tree0aa3f2b43858c03a4b71d66f1bacbdf9c5065efb
parent04a820ead0838c76e9c1242feb5e71048bf3e9dc
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