aboutsummaryrefslogtreecommitdiff
path: root/drivers/mfd/twl-core.c
diff options
context:
space:
mode:
authorPhilip Rakity <prakity@marvell.com>2011-11-25 21:25:23 +0400
committerAnton Vorontsov <cbouatmailru@gmail.com>2011-11-25 21:26:03 +0400
commit9c9cf9e26363d0c06d0e01d5304477be97ace5cb (patch)
tree11c5ce9267a40ec86a08cb405c6d99a6ff5ad15f /drivers/mfd/twl-core.c
parent44abd774f52999125d499aed17a2f70211c34dcd (diff)
max8925_power: Fix incorrect voltage and current calculation
The datasheet indicates a 12 bit value is returned for i2c registers for voltage and current. Code was assuming 8 bits. But default for chip is 12 bit return value. Voltage is returned in 2mV units -- adjust to return as uV per linux power spec Adjust current calculation to return units in uA. Signed-off-by: Philip Rakity <prakity@marvell.com> Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
Diffstat (limited to 'drivers/mfd/twl-core.c')
0 files changed, 0 insertions, 0 deletions