iio: exynos_adc: reduce timeout and use wait_for_completion_timeout
authorNaveen Krishna Chatradhi <ch.naveen@samsung.com>
Wed, 30 Apr 2014 09:26:00 +0000 (10:26 +0100)
committerJonathan Cameron <jic23@kernel.org>
Wed, 30 Apr 2014 20:46:37 +0000 (21:46 +0100)
commitc780a8c2415b21514b0a8b5398d7167c93627c64
treebb6104c3453b9415d130668bb330d6bae3d7d991
parent2bbc7247259f0d27c84b0e0746bd5e9831e39c36
iio: exynos_adc: reduce timeout and use wait_for_completion_timeout

ADC module on Exynos5 SoCs runs at 600KSPS. At this conversion rate,
waiting for 1000 msecs is wasteful (incase of h/w failure).

Hence, reduce the time out to 100msecs and use
wait_for_completion_timeout() instead of
wait_for_completion_interruptible_timeout()

Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
Reviewed-by: Doug Anderson <dianders@chromium.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/exynos_adc.c