diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2012-11-21 11:27:00 -0500 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2012-11-30 07:57:06 -0500 |
commit | e4ac7283639bb8da69af6ff5c00e2340348a339e (patch) | |
tree | c149c9d84e91c780b32c767a6d698c632f93743a | |
parent | 24b27fa109f7c1a116dcf4477d0963c124e161cb (diff) |
staging:iio:ad7793: Fix temperature scale
The temperature scale was off by a factor of 1000.
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
297 | break; | 297 | break; |
298 | case IIO_TEMP: | 298 | case IIO_TEMP: |
299 | /* 1170mV / 0.81 mV/C / 2^23 */ | 299 | /* 1170mV / 0.81 mV/C / 2^23 */ |
300 | scale_uv = 1444444444444ULL; | 300 | scale_uv = 1444444444444444ULL; |
301 | break; | 301 | break; |
302 | default: | 302 | default: |
303 | return -EINVAL; | 303 | return -EINVAL; |