iio: pressure: zpa2326: report interrupted case as failure
authorNicholas Mc Guire <der.herr@hofr.at>
Sun, 14 May 2017 08:43:55 +0000 (10:43 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 14 May 2017 14:28:14 +0000 (15:28 +0100)
commite7215fe4d51e69c9d2608ad0c409d48e844d0adc
tree5013b8be1511f4b551882f62b86617907b1fbb7b
parent6fb34812c2a2a4cdcdad4452b9634892812fa97b
iio: pressure: zpa2326: report interrupted case as failure

If the timeout-case prints a warning message then probably the interrupted
case should also. Further, wait_for_completion_interruptible_timeout()
returns long not int.

Fixes: commit 03b262f2bbf4 ("iio:pressure: initial zpa2326 barometer support")
Signed-off-by: Nicholas Mc Guire <der.herr@hofr.at>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/pressure/zpa2326.c