]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
staging:iio:ad7793: Fix VDD monitor scale
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 21 Nov 2012 16:27:00 +0000 (16:27 +0000)
committerJonathan Cameron <jic23@kernel.org>
Fri, 30 Nov 2012 12:57:06 +0000 (12:57 +0000)
The VDD monitor scale was off by a factor of 10.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/adc/ad7793.c

index b0a57e4754107f78b62f7edc08dcf54a41005f44..ba35562619f95f2334cd523e0d214b9852009969 100644 (file)
@@ -292,7 +292,7 @@ static int ad7793_read_raw(struct iio_dev *indio_dev,
                                return IIO_VAL_INT_PLUS_NANO;
                        } else {
                                /* 1170mV / 2^23 * 6 */
-                               scale_uv = (1170ULL * 100000000ULL * 6ULL);
+                               scale_uv = (1170ULL * 1000000000ULL * 6ULL);
                        }
                        break;
                case IIO_TEMP: