]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging:iio:ad7793: Fix temperature 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 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>
drivers/staging/iio/adc/ad7793.c

index ba35562619f95f2334cd523e0d214b9852009969..bd1358e51ec0f78099982b232db780baf4f999e1 100644 (file)
@@ -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;