ds2760_battery: add current_accum module parameter
commit02d0d2758821c38b2601d34dac544140af09e651
authorDaniel Mack <daniel@caiaq.de>
Wed, 15 Jul 2009 20:57:16 +0000 (15 22:57 +0200)
committerAnton Vorontsov <cbouatmailru@gmail.com>
Thu, 30 Jul 2009 13:37:21 +0000 (30 17:37 +0400)
tree3c0fa36e85cd89d4433b8de0dad4cace561ba466
parent25f2bfa62ae77820a8185734c4a2ab7f3971a2fc
ds2760_battery: add current_accum module parameter

When connecting a ds2760 to a partly loaded battery the first time,
there must be a way to bootstrap the current_accum value. Without that,
the current capactity value is bogus until the battery is fully charged
for the first time.

Signed-off-by: Daniel Mack <daniel@caiaq.de>
Cc: Szabolcs Gyurko <szabolcs.gyurko@tlt.hu>
Cc: Matt Reimer <mreimer@vpop.net>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
drivers/power/ds2760_battery.c