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 iio: ad799x: Fix ad7991/ad7995/ad7999 config setup 2014-12-12 12:34:00 +00:00
ad7266.c iio:ad7266: Mark transfer buffer as __be16 2013-12-03 20:22:27 +00:00
ad7291.c 3rd round of IIO new drivers, cleanups and functionality for the 3.17 cycle. 2014-07-13 12:31:47 -07:00
ad7298.c iio:adc:ad7298: Use BIT() and GENMASK() macros 2014-06-14 16:04:24 +01:00
ad7476.c iio:adc:ad7476: Use GENMASK() macro 2014-06-14 16:03:48 +01:00
ad7791.c
ad7793.c iio:adc: Fix typo in MODULE_DESCRIPTION in ad7793.c 2015-03-07 19:18:49 +00:00
ad7887.c iio:adc:ad7887: Use BIT() and GENMASK() macros 2014-06-14 16:03:19 +01:00
ad7923.c
ad_sigma_delta.c iio: adc: ad_sigma_delta: Fix indio_dev->trig assignment 2014-08-25 21:48:29 +01:00
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 iio: adc: exynos_adc: Add support for exynos7 2014-11-05 15:38:25 +00:00
Kconfig Merge 4.0-rc7 into staging-next 2015-04-07 11:03:02 +02:00
lp8788_adc.c iio: remove .owner field for driver using module_platform_driver 2014-08-26 21:08:38 +01:00
Makefile iio: adc: Cosmic Circuits 10001 ADC driver 2015-01-29 18:09:40 +00:00
max1027.c iio: add support of the max1027 2014-06-28 09:54:14 +01:00
max1363.c iio:adc:max1363 incorrect resolutions for max11604, max11605, max11610 and max11611. 2014-05-25 12:06:25 +01:00
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 iio: adc: men_z188_adc: Add terminating entry for men_z188_ids 2014-11-15 16:12:04 +00:00
nau7802.c tree-wide: use reinit_completion instead of INIT_COMPLETION 2013-11-15 09:32:21 +09:00
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 Staging patches for 3.19-rc1 2014-12-15 18:06:13 -08:00
ti_am335x_adc.c iio: fix drivers that check buffer->scan_mask 2015-03-07 19:17:07 +00:00
ti-adc081c.c iio: adc: ti-adc081c: Include linux/of.h header 2013-10-18 20:05:56 +01:00
ti-adc128s052.c iio: adc: Add TI ADC128S052 2014-08-07 14:43:25 +01:00
twl4030-madc.c iio: remove .owner field for driver using module_platform_driver 2014-08-26 21:08:38 +01:00
twl6030-gpadc.c iio: remove .owner field for driver using module_platform_driver 2014-08-26 21:08:38 +01:00
vf610_adc.c Merge 4.0-rc7 into staging-next 2015-04-07 11:03:02 +02:00
viperboard_adc.c iio: remove .owner field for driver using module_platform_driver 2014-08-26 21:08:38 +01:00
xilinx-xadc-core.c iio: adc: xilinx: Fix VREFN sign 2015-04-19 13:49:54 +01:00
xilinx-xadc-events.c iio: xilinx-xadc: Remove unused variable 2014-07-03 22:00:40 +01:00
xilinx-xadc.h iio: adc: xilinx: Fix register addresses 2015-04-19 13:47:58 +01:00