From: Lars-Peter Clausen Date: Fri, 10 Aug 2012 16:36:00 +0000 (+0100) Subject: staging:iio:ad7793: Fix internal reference value X-Git-Tag: v4.14-rc1~11330^2~8^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=87a0c1574d2fd478c24e841c96f5019e5b44762f;p=platform%2Fkernel%2Flinux-rpi.git staging:iio:ad7793: Fix internal reference value The internal reference for the ad7793 and similar is 1.17V Signed-off-by: Lars-Peter Clausen Signed-off-by: Jonathan Cameron --- 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) 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;