commit | 29005fafeab8d2a15091f8b7628fe08ef4aab868 | [log] [tgz] |
---|---|---|
author | Abhijeet Dharmapurikar <adharmap@codeaurora.org> | Mon Jul 15 17:57:27 2013 -0700 |
committer | Abhijeet Dharmapurikar <adharmap@codeaurora.org> | Mon Jul 15 20:31:56 2013 -0700 |
tree | e8294a1cb63e21f3b827c837ce297867b3ee0150 | |
parent | 3c0cccf93df4855ebab815e133e8542d7a574b0c [diff] |
hwmon: qpnp-current: fix converting offset and gain to voltage The current driver forces a value of 0uV for offset and always lands up with 17.857mV for gain. The raw values for offset and gain are correct however. Update the driver to do a proper conversion of raw offset and gain to values in microvolts. Change-Id: I19eda7a4f0cc8ab6af0d31e01e1168d99f00bf7a Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>