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>
This commit is contained in:
parent
24b27fa109
commit
e4ac728363
|
@ -297,7 +297,7 @@ static int ad7793_read_raw(struct iio_dev *indio_dev,
|
||||||
break;
|
break;
|
||||||
case IIO_TEMP:
|
case IIO_TEMP:
|
||||||
/* 1170mV / 0.81 mV/C / 2^23 */
|
/* 1170mV / 0.81 mV/C / 2^23 */
|
||||||
scale_uv = 1444444444444ULL;
|
scale_uv = 1444444444444444ULL;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
Loading…
Reference in New Issue