]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fix adc to voltage calculation in da9052 hwmon driver
authorAnthony Olech <anthony.olech.opensource@diasemi.com>
Wed, 18 Dec 2013 15:15:31 +0000 (15:15 +0000)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 19 Dec 2013 18:01:40 +0000 (10:01 -0800)
commit606a365e1d3ebe9a02710ec039f1ff2f8fea23a6
tree37bfe04e767f9725ce184f2da604701c45d763b3
parented3f03c98c440bf895c7f2daee66b9a8ce08837c
fix adc to voltage calculation in da9052 hwmon driver

The ADC resolution of the PMIC is 10-bits, this means that the maximum
possible value is 1023 and not the 1024 as originally in the code.

Signed-off-by: Anthony Olech <anthony.olech.opensource@diasemi.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/da9052-hwmon.c