From: Pali Rohár Date: Mon, 24 May 2010 18:52:13 +0000 (+0200) Subject: bq27x00: Fix CURRENT_NOW property X-Git-Tag: v2.6.39-rc1~56^2~10^2~11 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2e5118c370e78c3841606e7edc7677c986325fa;p=pandora-kernel.git 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 Signed-off-by: Lars-Peter Clausen Acked-by: Rodolfo Giometti Tested-by: Grazvydas Ignotas --- Reading git-diff-tree failed