linux/drivers/iio/adc
Naidu Tellapati 713276ea88 iio: adc: cc10001: Fix incorrect use of power-up/power-down register
At present we are incorrectly setting the register to 0x1 to power up
the ADC. Since it is an active high power down register, we need to set
the register to 0x0 to actually power up. Conversely, writing 0x1 to the
register powers it down.

This commit adds a couple of helpers to make the code clearer and then
use them to do the power-up/power-down properly.

Fixes: 1664f6a5b0 ("iio: adc: Cosmic Circuits 10001 ADC driver")
Signed-off-by: Naidu Tellapati <naidu.tellapati@imgtec.com>
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@imgtec.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2015-05-12 20:00:58 +01:00
..
ad799x.c
ad7266.c
ad7291.c
ad7298.c
ad7476.c
ad7791.c
ad7793.c iio:adc: Fix typo in MODULE_DESCRIPTION in ad7793.c 2015-03-07 19:18:49 +00:00
ad7887.c
ad7923.c
ad_sigma_delta.c
at91_adc.c iio: fix drivers that check buffer->scan_mask 2015-03-07 19:17:07 +00:00
axp288_adc.c iio/axp288_adc: add missing channel info mask 2015-04-09 18:49:13 +01:00
cc10001_adc.c iio: adc: cc10001: Fix incorrect use of power-up/power-down register 2015-05-12 20:00:58 +01:00
exynos_adc.c
Kconfig Merge 4.0-rc7 into staging-next 2015-04-07 11:03:02 +02:00
lp8788_adc.c
Makefile iio: adc: Cosmic Circuits 10001 ADC driver 2015-01-29 18:09:40 +00:00
max1027.c
max1363.c
mcp320x.c iio: mcp320x: Fix occasional incorrect readings 2015-05-07 11:12:20 +01:00
mcp3422.c iio:adc:mcp3422 Fix incorrect scales table 2015-02-04 16:30:22 +00:00
men_z188_adc.c
nau7802.c
qcom-spmi-iadc.c iio: iadc: wait_for_completion_timeout time in jiffies 2015-01-10 11:43:26 +00:00
qcom-spmi-vadc.c iio: adc: spmi-vadc: Fix overflow in output value normalization 2015-04-18 17:40:04 +01:00
rockchip_saradc.c
ti-adc081c.c
ti-adc128s052.c
ti_am335x_adc.c iio: fix drivers that check buffer->scan_mask 2015-03-07 19:17:07 +00:00
twl4030-madc.c
twl6030-gpadc.c
vf610_adc.c Merge 4.0-rc7 into staging-next 2015-04-07 11:03:02 +02:00
viperboard_adc.c
xilinx-xadc-core.c iio: adc: xilinx: Fix VREFN sign 2015-04-19 13:49:54 +01:00
xilinx-xadc-events.c
xilinx-xadc.h iio: adc: xilinx: Fix register addresses 2015-04-19 13:47:58 +01:00