Skip to content

Commit

Permalink
staging:iio:ad7793: Fix temperature scale
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lars-Peter Clausen authored and Jonathan Cameron committed Nov 30, 2012
1 parent 24b27fa commit e4ac728
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/iio/adc/ad7793.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e4ac728

Please sign in to comment.