Commit 24b27fa1 authored by Lars-Peter Clausen's avatar Lars-Peter Clausen Committed by Jonathan Cameron

staging:iio:ad7793: Fix VDD monitor scale

The VDD monitor scale was off by a factor of 10.
Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent e143ef8f
...@@ -292,7 +292,7 @@ static int ad7793_read_raw(struct iio_dev *indio_dev, ...@@ -292,7 +292,7 @@ static int ad7793_read_raw(struct iio_dev *indio_dev,
return IIO_VAL_INT_PLUS_NANO; return IIO_VAL_INT_PLUS_NANO;
} else { } else {
/* 1170mV / 2^23 * 6 */ /* 1170mV / 2^23 * 6 */
scale_uv = (1170ULL * 100000000ULL * 6ULL); scale_uv = (1170ULL * 1000000000ULL * 6ULL);
} }
break; break;
case IIO_TEMP: case IIO_TEMP:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment