diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2012-08-10 12:36:00 -0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2012-08-16 15:24:35 -0400 |
commit | 87a0c1574d2fd478c24e841c96f5019e5b44762f (patch) | |
tree | 071bbbe991f8fa939c5e763b50bf16b1b6b245e6 /drivers | |
parent | 08ca3b78505b4fba1e782ae9266bfaf878e4bdd1 (diff) |
staging:iio:ad7793: Fix internal reference value
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/iio/adc/ad7793.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/adc/ad7793.c b/drivers/staging/iio/adc/ad7793.c index 91cb95c67635..112e2b7b5bc4 100644 --- a/drivers/staging/iio/adc/ad7793.c +++ b/drivers/staging/iio/adc/ad7793.c | |||
@@ -922,7 +922,7 @@ static int __devinit ad7793_probe(struct spi_device *spi) | |||
922 | else if (voltage_uv) | 922 | else if (voltage_uv) |
923 | st->int_vref_mv = voltage_uv / 1000; | 923 | st->int_vref_mv = voltage_uv / 1000; |
924 | else | 924 | else |
925 | st->int_vref_mv = 2500; /* Build-in ref */ | 925 | st->int_vref_mv = 1170; /* Build-in ref */ |
926 | 926 | ||
927 | spi_set_drvdata(spi, indio_dev); | 927 | spi_set_drvdata(spi, indio_dev); |
928 | st->spi = spi; | 928 | st->spi = spi; |