OSDN Git Service

iio: qcom-rradc: Disable continuous mode when read fails
authorSubbaraman Narayanamurthy <subbaram@codeaurora.org>
Wed, 20 Sep 2017 03:16:43 +0000 (20:16 -0700)
committerSiddartha Mohanadoss <smohanad@codeaurora.org>
Tue, 3 Oct 2017 19:35:39 +0000 (12:35 -0700)
commit8c20990f433abaa441ffc65b68836a908ff62e5d
tree6587aa945891a4a3219b2ca3f84bcf61e04d161d
parentf1034d926eb757bf377fc3263ce037df2327a138
iio: qcom-rradc: Disable continuous mode when read fails

Currently, when a channel is read in continuous mode and the read
operation fails, RR_ADC would be left enabled in continuous mode.
Disable the continuous mode in such cases so that the other read
operations which doesn't need continuous mode can go through.

Change-Id: I2bf257bd535e1e4a30e18b6257e584a5be96b69d
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
drivers/iio/adc/qcom-rradc.c