On 15/04/15 20:11, Thomas Betker wrote: > From: Thomas Betker <thomas.betker@xxxxxxxxxxxxxxxxx> > > The scaling factor for VREFP is 3.0/4096, not 1.0/4096; fix this to get > correct readings. > > Signed-off-by: Thomas Betker <thomas.betker@xxxxxxxxxxxxxxxxx> Applied to the fixes-togreg branch of iio.git. Marked for stable. Thanks, > --- > drivers/iio/adc/xilinx-xadc-core.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/iio/adc/xilinx-xadc-core.c b/drivers/iio/adc/xilinx-xadc-core.c > index 0ad7b50..6fa629b 100644 > --- a/drivers/iio/adc/xilinx-xadc-core.c > +++ b/drivers/iio/adc/xilinx-xadc-core.c > @@ -856,6 +856,7 @@ static int xadc_read_raw(struct iio_dev *indio_dev, > switch (chan->address) { > case XADC_REG_VCCINT: > case XADC_REG_VCCAUX: > + case XADC_REG_VREFP: > case XADC_REG_VCCBRAM: > case XADC_REG_VCCPINT: > case XADC_REG_VCCPAUX: > -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html