bq27x00: Fix CURRENT_NOW property
authorPali Rohár <pali.rohar@gmail.com>
Mon, 24 May 2010 18:52:13 +0000 (20:52 +0200)
committerLars-Peter Clausen <lars@metafoo.de>
Tue, 22 Feb 2011 10:02:39 +0000 (11:02 +0100)
commita2e5118c370e78c3841606e7edc7677c986325fa
treed733f4420cdca08ff36f417e91e8efb233f51fca
parent0e9f30497e88600ba52013665270f543bb94f0d8
bq27x00: Fix CURRENT_NOW property

According to the bq27000 datasheet the current should be calculated by
the following formula:
    current = AI * 3570 / 20

This patch adjust the drivers code accordingly.

Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Rodolfo Giometti <giometti@linux.it>
Tested-by: Grazvydas Ignotas <notasas@gmail.com>
drivers/power/bq27x00_battery.c