summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2012-11-21 16:27:00 +0000
committerJonathan Cameron <jic23@kernel.org>2012-11-30 12:57:06 +0000
commit24b27fa109f7c1a116dcf4477d0963c124e161cb (patch)
treeb863802d233985f011ec2b7f0f9a6ca343dc4526
parente143ef8f297d980037149fe2dc62af72621a0f5e (diff)
downloadop-kernel-dev-24b27fa109f7c1a116dcf4477d0963c124e161cb.zip
op-kernel-dev-24b27fa109f7c1a116dcf4477d0963c124e161cb.tar.gz
staging:iio:ad7793: Fix VDD monitor scale
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>
-rw-r--r--drivers/staging/iio/adc/ad7793.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/adc/ad7793.c b/drivers/staging/iio/adc/ad7793.c
index b0a57e4..ba35562 100644
--- a/drivers/staging/iio/adc/ad7793.c
+++ b/drivers/staging/iio/adc/ad7793.c
@@ -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:
OpenPOWER on IntegriCloud