commit | c9f92dc39a84ad9e6b6d29184614ebe0556815cb | [log] [tgz] |
---|---|---|
author | Xiaozhe Shi <xiaozhes@codeaurora.org> | Fri Mar 15 11:26:25 2013 -0700 |
committer | Xiaozhe Shi <xiaozhes@codeaurora.org> | Fri Mar 15 11:46:18 2013 -0700 |
tree | 07eb9d59f4a4580f175a961e94b1eeb3c6b2e7a6 | |
parent | eaa2876e7e02a13c90e052abce230093778f0d7a [diff] |
power: qpnp-bms: Fix sign of adc current reads When the BMS switched to using the adc driver for synchronous voltage and current reads, the sign of the current readings got reversed. This causes inaccuracies in the BMS because the estimated OCV is now lower than it should be because of the negative IR drop. Fix this by flipping the sign of the adc current readings. Change-Id: I605f227bb635cb494056a87df14e1b6ba7678e1b Signed-off-by: Xiaozhe Shi <xiaozhes@codeaurora.org>