BCI: fix current calculation and CGAIN bit set procedure
authorGrazvydas Ignotas <notasas@gmail.com>
Fri, 20 Nov 2009 10:18:57 +0000 (12:18 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Fri, 20 Nov 2009 10:18:57 +0000 (12:18 +0200)
commitce8eff07a7ab7db9415957d95f60c5246098c8c6
tree439d486dc7b26bd51067eac37ff04e2a3a16b7e4
parentea128358aa6cd2d26f512c1f188915f30b469bd4
BCI: fix current calculation and CGAIN bit set procedure

Use TI formula for current calculation and a bit cleaner
way to set CGAIN bit.
drivers/power/twl4030_bci_battery.c