diff options
author | Hector Palacios <hector.palacios@digi.com> | 2013-12-23 17:48:00 +0000 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2014-01-01 14:16:43 +0000 |
commit | f6db68a405c795481e15c6c34c865f511b2a098e (patch) | |
tree | e51d043b498b48913a03453049c25d4a00eedf41 /drivers/media | |
parent | 971672c0b3ccd16ce53299f1ccac0253fc6d7bf6 (diff) |
iio: mxs-lradc: add scale attribute to channels
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 pre-dividers apply)
- allows to read the scaling attribute (computed from the Vref)
Signed-off-by: Hector Palacios <hector.palacios@digi.com>.
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Marek Vasut <marex@denx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/media')
0 files changed, 0 insertions, 0 deletions