android_kernel_samsung_msm8976/drivers/iio
Lars-Peter Clausen ecf6ca2539 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>
2013-03-17 20:16:40 +00:00
..
accel iio:accel:kxsd9 move to info_mask_(shared_by_type/separate) 2013-03-17 19:49:21 +00:00
adc iio:ad7923: Implement scale reporting 2013-03-17 20:16:40 +00:00
amplifiers iio:amplifiers:ad8366 move to info_mask_(shared_by_type/separate) 2013-03-17 19:49:30 +00:00
common iio:common: Use spi_sync_transfer() in STMicroelectronics common library 2013-03-16 10:18:10 +00:00
dac iio:dac:mcp4725 move to info_mask_(shared_by_type/separate) 2013-03-17 19:49:34 +00:00
frequency iio:freq:ad9523 move to info_mask_(shared_by_type/separate) 2013-03-17 19:49:34 +00:00
gyro iio:gyro:itg3200_core move to info_mask_(shared_by_type/separate) 2013-03-17 19:49:35 +00:00
imu using kfifo_in_spinlocked instead of separate code. 2013-03-17 20:14:37 +00:00
light iio:light:vcnl4000 move to info_mask_(shared_by_type/separate) 2013-03-17 19:49:37 +00:00
magnetometer iio:hid_sensors move to info_mask_(shared_by_type/separate) 2013-03-17 19:49:18 +00:00
buffer_cb.c iio: Update iio_channel_get_all and iio_channel_get_all_cb API 2013-02-02 11:58:46 +00:00
iio_core.h iio: Add OF support 2013-03-16 10:17:59 +00:00
iio_core_trigger.h
industrialio-buffer.c staging:iio: Add support for multiple buffers 2012-11-10 10:17:21 +00:00
industrialio-core.c iio:core drop info_mask from struct iio_info 2013-03-17 19:49:44 +00:00
industrialio-event.c iio: events: Make iio_push_event() IRQ context save 2013-03-17 20:04:45 +00:00
industrialio-trigger.c iio: tweak language in industrialio-trigger comments 2013-02-06 18:40:05 +00:00
industrialio-triggered-buffer.c
inkern.c iio: Add OF support 2013-03-16 10:17:59 +00:00
Kconfig staging:iio: Move adis library out of staging 2012-11-19 22:22:12 +00:00
kfifo_buf.c staging:iio: Remove noop call to __iio_update_buffer 2013-01-31 17:56:44 +00:00
Makefile staging:iio: Move adis library out of staging 2012-11-19 22:22:12 +00:00