This would otherwise lead supply 7 and 8 to scale to 3V instead of 6V Signed-off-by: Jean-Francois Dagenais <jeff.dagenais@xxxxxxxxx> --- drivers/iio/adc/xilinx-ams.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iio/adc/xilinx-ams.c b/drivers/iio/adc/xilinx-ams.c index fd4eb6d..6b3ab56 100644 --- a/drivers/iio/adc/xilinx-ams.c +++ b/drivers/iio/adc/xilinx-ams.c @@ -255,6 +255,7 @@ static int ams_read_raw(struct iio_dev *indio_dev, case AMS_SUPPLY7: case AMS_SUPPLY8: *val = AMS_SUPPLY_SCALE_6VOLT; + break; case AMS_SUPPLY9: case AMS_SUPPLY10: if (chan->scan_index < PS_SEQ_MAX) -- 2.1.4 -- 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