Skip to content

Commit

Permalink
staging:iio:ad7793: Fix internal reference value
Browse files Browse the repository at this point in the history
The internal reference for the ad7793 and similar is 1.17V

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 Aug 16, 2012
1 parent 08ca3b7 commit 87a0c15
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 @@ -922,7 +922,7 @@ static int __devinit ad7793_probe(struct spi_device *spi)
else if (voltage_uv)
st->int_vref_mv = voltage_uv / 1000;
else
st->int_vref_mv = 2500; /* Build-in ref */
st->int_vref_mv = 1170; /* Build-in ref */

spi_set_drvdata(spi, indio_dev);
st->spi = spi;
Expand Down

0 comments on commit 87a0c15

Please sign in to comment.