commit | 9c9cf9e26363d0c06d0e01d5304477be97ace5cb | [log] [tgz] |
---|---|---|
author | Philip Rakity <prakity@marvell.com> | Fri Nov 25 21:25:23 2011 +0400 |
committer | Anton Vorontsov <cbouatmailru@gmail.com> | Fri Nov 25 21:26:03 2011 +0400 |
tree | 11c5ce9267a40ec86a08cb405c6d99a6ff5ad15f | |
parent | 44abd774f52999125d499aed17a2f70211c34dcd [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>