OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Apr 2018 17:47:56 +0000 (19:47 +0200)
commitc5eb48c6331d8773d707facbb8950f8fd7ef1682
treefaf6e50a0fd39e2e84b07cde391bc65319a6ad55
parentd6701d258d3c916aca4515c9d32dc7340b0e22b4
iio: pressure: zpa2326: report interrupted case as failure

[ Upstream commit e7215fe4d51e69c9d2608ad0c409d48e844d0adc ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/pressure/zpa2326.c