]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (da9052) Fix adc to voltage calculation
authorAnthony Olech <anthony.olech.opensource@diasemi.com>
Wed, 18 Dec 2013 15:15:31 +0000 (15:15 +0000)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 15 Jan 2014 05:36:31 +0000 (21:36 -0800)
commit3546cf7d142d114cb405845a72253424a5a0609c
treeccecdb9e0c835bb9d36e6b800eed08f9fd9eb713
parente4b6991fed32ad4e99e603eff29de898c4561ddc
hwmon: (da9052) Fix adc to voltage calculation

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