[PATCHv5 1/4] iio: mxs-lradc: add scale attribute to channels

2013-12-23 Thread Alexandre Belloni
From: Hector Palacios Some LRADC channels have fixed pre-dividers and all have an optional divider by two which allows a maximum input voltage of VDDIO - 50mV. This patch - adds the scaling info flag to all channels - grabs the max reference voltage per channel (where the fixed

[PATCHv5 1/4] iio: mxs-lradc: add scale attribute to channels

2013-12-23 Thread Alexandre Belloni
From: Hector Palacios hector.palac...@digi.com Some LRADC channels have fixed pre-dividers and all have an optional divider by two which allows a maximum input voltage of VDDIO - 50mV. This patch - adds the scaling info flag to all channels - grabs the max reference voltage per channel