summaryrefslogtreecommitdiffstats
path: root/drivers/iio/light
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2013-03-04 19:30:00 +0000
committerJonathan Cameron <jic23@kernel.org>2013-03-17 20:16:40 +0000
commitecf6ca2539bc3a36a14685b743fd7376707958ab (patch)
treede64d99020fdb59a48faca742ec562bcbe1967dc /drivers/iio/light
parent135f06465d6842fdf1381f2610e27ff43e81f24d (diff)
downloadtalos-op-linux-ecf6ca2539bc3a36a14685b743fd7376707958ab.tar.gz
talos-op-linux-ecf6ca2539bc3a36a14685b743fd7376707958ab.zip
iio:ad7923: Implement scale reporting
The driver already claims to support scale reporting in its channel spec, but doesn't actually implement this yet. This patch uses the regulator API to get the reference voltage and calculates the scale based on that. The patch also moves the global configuration bits into a field in the ad7923_state struct, since depending on the RANGE bit, the range goes either from 0 to VREF or from 0 to 2 * VREF. So we need to know the setting of the RANGE bit when calculating the scale. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Cc: Patrick Vasseur <patrick.vasseur@c-s.fr> Cc: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/light')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud