OSDN Git Service

iio: stmpe-adc: Use wait_for_completion_timeout
authorPhilippe Schenker <philippe.schenker@toradex.com>
Tue, 7 May 2019 14:36:14 +0000 (16:36 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 11 May 2019 10:15:37 +0000 (11:15 +0100)
commite813dde6f83343012239a44e433eacc22de1079c
tree2ebe4b6f4614ad065e720b4b81b9b74d2d2f8136
parent4bd44bb2b470459d795c4bac328ed8edb7ebd132
iio: stmpe-adc: Use wait_for_completion_timeout

Use wait_for_completion_timeout instead of
wait_for_completion_interuptible_timeout.

The interruptible variant gets constantly interrupted if a user
program is compiled with the -pg option.
The killable variant was not used due to the fact that a second
program, reading on this device, that gets killed is then also killing
that wait.

Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/stmpe-adc.c