linux/drivers/iio/proximity
Miaoqian Lin 50f2959113 iio: proximity: vl53l0x: Fix return value check of wait_for_completion_timeout
wait_for_completion_timeout() returns unsigned long not int.
It returns 0 if timed out, and positive if completed.
The check for <= 0 is ambiguous and should be == 0 here
indicating timeout which is the only error case.

Fixes: 3cef2e31b5 ("iio: proximity: vl53l0x: Add IRQ support")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Link: https://lore.kernel.org/r/20220412064210.10734-1-linmq006@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2022-04-28 19:22:55 +01:00
..
as3935.c iio:proximity:as3935: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr() etc 2022-02-18 11:46:03 +00:00
cros_ec_mkbp_proximity.c iio: proximity: Add a ChromeOS EC MKBP proximity driver 2021-03-25 19:13:50 +00:00
isl29501.c iio: prox: isl29501: Fix buffer alignment in iio_push_to_buffers_with_timestamp() 2021-06-16 14:53:13 +01:00
Kconfig iio:proximity:sx9360: Add sx9360 support 2022-01-23 18:03:33 +00:00
Makefile iio:proximity:sx9360: Add sx9360 support 2022-01-23 18:03:33 +00:00
mb1232.c iio:proximity:mb1232: Fix timestamp alignment and prevent data leak. 2020-08-22 11:38:54 +01:00
ping.c iio: proximity: ping: Replace OF specific code by device_get_match_data() 2022-04-28 19:22:55 +01:00
pulsedlight-lidar-lite-v2.c iio:proximity:pulsedlight: Switch from CONFIG_PM guards to pm_ptr() etc 2022-02-21 19:33:04 +00:00
rfd77402.c iio:proximity:rfd77492: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr() etc 2022-02-18 11:46:03 +00:00
srf04.c iio:proximity:srf04: White space cleanup of spacing around {} in id tables 2022-01-23 18:03:34 +00:00
srf08.c iio:proximity:srf08: White space cleanup of spacing around {} in id tables 2022-01-23 18:03:34 +00:00
sx9310.c iio:proximity:sx9310: Extract common Semtech sensor logic 2022-01-23 18:03:33 +00:00
sx9324.c iio:proximity:sx9324: Add dt_binding support 2022-01-23 18:03:33 +00:00
sx9360.c iio: sx9360: fix iio event generation 2022-01-30 12:39:16 +00:00
sx9500.c iio:proximity:sx9500: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr() etc 2022-02-18 11:46:03 +00:00
sx_common.c iio: sx9360: fix iio event generation 2022-01-30 12:39:16 +00:00
sx_common.h iio:proximity:sx9310: Extract common Semtech sensor logic 2022-01-23 18:03:33 +00:00
vcnl3020.c iio: proximity: vcnl3020: remove iio_claim/release_direct 2021-07-24 16:07:17 +01:00
vl53l0x-i2c.c iio: proximity: vl53l0x: Fix return value check of wait_for_completion_timeout 2022-04-28 19:22:55 +01:00