From e4ac7283639bb8da69af6ff5c00e2340348a339e Mon Sep 17 00:00:00 2001 From: Lars-Peter Clausen Date: Wed, 21 Nov 2012 16:27:00 +0000 Subject: [PATCH] staging:iio:ad7793: Fix temperature scale The temperature scale was off by a factor of 1000. Signed-off-by: Lars-Peter Clausen Signed-off-by: Jonathan Cameron --- drivers/staging/iio/adc/ad7793.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/iio/adc/ad7793.c b/drivers/staging/iio/adc/ad7793.c index ba35562619f9..bd1358e51ec0 100644 --- a/drivers/staging/iio/adc/ad7793.c +++ b/drivers/staging/iio/adc/ad7793.c @@ -297,7 +297,7 @@ static int ad7793_read_raw(struct iio_dev *indio_dev, break; case IIO_TEMP: /* 1170mV / 0.81 mV/C / 2^23 */ - scale_uv = 1444444444444ULL; + scale_uv = 1444444444444444ULL; break; default: return -EINVAL; -- 2.20.1