WSL2-Linux-Kernel/drivers/iio/proximity
Miaoqian Lin 7c7bc8b82f iio: proximity: vl53l0x: Fix return value check of wait_for_completion_timeout
[ Upstream commit 50f2959113 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-06-14 18:36:05 +02:00
..
Kconfig iio: proximity: Add a ChromeOS EC MKBP proximity driver 2021-03-25 19:13:50 +00:00
Makefile iio: proximity: Add a ChromeOS EC MKBP proximity driver 2021-03-25 19:13:50 +00:00
as3935.c iio: prox: as3935: Fix buffer alignment in iio_push_to_buffers_with_timestamp() 2021-05-17 13:54:29 +01: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
mb1232.c iio:proximity:mb1232: Fix timestamp alignment and prevent data leak. 2020-08-22 11:38:54 +01:00
ping.c iio: remove left-over parent assignments 2020-06-14 11:50:04 +01:00
pulsedlight-lidar-lite-v2.c iio: prox: pulsed-light-v2: Use pm_runtime_resume_and_get() 2021-06-16 14:53:13 +01:00
rfd77402.c iio: proximity: rfd77402: convert probe to device-managed functions 2021-07-17 18:49:30 +01:00
srf04.c iio: proximity: srf04: Use pm_runtime_resume_and_get() and handle error 2021-05-17 13:54:27 +01:00
srf08.c iio: prox: srf08: Fix buffer alignment in iio_push_to_buffers_with_timestamp() 2021-05-17 13:54:29 +01:00
sx9310.c iio: sx9310: Support ACPI property 2021-07-31 15:15:28 +01:00
sx9500.c iio: core: move @id from struct iio_dev to struct iio_dev_opaque 2021-05-17 13:49:13 +01: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-06-14 18:36:05 +02:00