From: Lars-Peter Clausen Date: Wed, 21 Nov 2012 16:27:00 +0000 (+0000) Subject: staging:iio:ad7793: Fix temperature scale X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e4ac7283639bb8da69af6ff5c00e2340348a339e;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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;