iio: staging: adc: palmas: add support for auto conversion during sleep
authorLaxman Dewangan <ldewangan@nvidia.com>
Sun, 21 Jul 2013 07:56:22 +0000 (12:56 +0530)
committerHarry Hong <hhong@nvidia.com>
Mon, 2 Dec 2013 06:12:24 +0000 (22:12 -0800)
commite6e80952aec097507dae95ceb632c299787d9cf1
treedfeaaa2338f9b4b7ccf2020ff7cdffa47113c8b3
parent7e1310fe604028c838013393bd71361c4c5da9e4
iio: staging: adc: palmas: add support for auto conversion during sleep

Add support of continuous ADC conversion and threshold configuration for
ADC channel so that if the channel data crosses the threshold value, it
can wakeup system from suspend.

bug 1301017
bug 1366274

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/243914
(cherry picked from commit 8cf130a684131e528734c435ed837a297ffb3908)

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/251674
(cherry picked from commit 16c693bf69b1ea0a09731caf0b175b4cb9ddc5e5)

Change-Id: If1ab0753431761918e71623d19aadfd2bb55db08
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/336845
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>
drivers/staging/iio/adc/palmas_gpadc.c
include/linux/mfd/palmas.h