linux/drivers/iio
Miaoqian Lin d345b23200 iio: adc: stmpe-adc: Fix wait_for_completion_timeout return value check
wait_for_completion_timeout() returns unsigned long not long.
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: e813dde6f8 ("iio: stmpe-adc: Use wait_for_completion_timeout")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Reviewed-by: Philippe Schenker <philippe.schenker@toradex.com>
Link: https://lore.kernel.org/r/20220412065150.14486-1-linmq006@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2022-04-28 19:22:55 +01:00
..
accel iio: accel: mma8452: Add missing documentation for name element of chip_info 2022-04-28 19:22:55 +01:00
adc iio: adc: stmpe-adc: Fix wait_for_completion_timeout return value check 2022-04-28 19:22:55 +01:00
addac iio: addac: ad74413r: correct comparator gpio getters mask usage 2022-01-30 14:23:33 +00:00
afe iio: afe: rescale: Make use of device properties 2022-04-28 19:22:54 +01:00
amplifiers Char/Misc and other driver updates for 5.18-rc1 2022-03-28 12:27:35 -07:00
buffer iio: core: Simplify the registration of kfifo buffers 2022-04-10 16:25:46 +01:00
cdc iio:cdc:ad7150: Fix use of uninitialized ret 2021-04-07 08:36:39 +01:00
chemical iio:chemical:atlas: Switch from CONFIG_PM guards to pm_ptr() etc 2022-02-21 19:33:04 +00:00
common iio: Replace strtobool() with kstrtobool() 2022-04-28 19:22:54 +01:00
dac iio: dac: dpot: Drop dependency on OF 2022-04-28 19:22:54 +01:00
dummy iio: dummy: iio_simple_dummy: check the return value of kstrdup() 2022-04-04 09:11:24 +01:00
filter iio:filter:admv8818: add support for ADMV8818 2021-12-16 17:34:28 +00:00
frequency iio: Replace strtobool() with kstrtobool() 2022-04-28 19:22:54 +01:00
gyro iio: gyro: fxas21002c: Make use of device properties 2022-04-28 19:22:55 +01:00
health iio: core: Simplify the registration of kfifo buffers 2022-04-10 16:25:46 +01:00
humidity iio:common:meas-spec: Move exports into IIO_MEAS_SPEC_SENSORS 2022-02-18 11:42:26 +00:00
imu iio: imu: bmi160: Make use of device properties 2022-04-28 19:22:54 +01:00
light iio: light: tsl2772: Make use of device properties 2022-04-28 19:22:55 +01:00
magnetometer iio: magnetometer: ak8974: Drop dependency on OF 2022-04-28 19:22:55 +01:00
multiplexer iio: multiplexer: Make use of device properties 2022-04-04 09:11:24 +01:00
orientation iio: hid-sensors: bind IIO channels alloc to device object 2021-07-13 18:21:53 +01:00
position iio: hid-sensors: Update header includes 2021-06-16 14:53:13 +01:00
potentiometer Char/Misc and other driver updates for 5.18-rc1 2022-03-28 12:27:35 -07:00
potentiostat iio: lmp91000: Remove no-op trigger ops 2021-11-17 17:51:38 +00:00
pressure iio: st_sensors: Stop abusing mlock to ensure internal coherency 2022-04-10 16:21:45 +01:00
proximity iio: proximity: ping: Replace OF specific code by device_get_match_data() 2022-04-28 19:22:55 +01:00
resolver iio:resolver:ad2s1200: Drop of_match_ptr protection 2020-09-21 18:41:31 +01:00
temperature iio: temperature: max31856: Make use of device properties 2022-04-28 19:22:55 +01:00
test iio: test: add basic tests for the iio-rescale driver 2022-02-28 10:22:24 +00:00
trigger iio: sysfs-trigger: replace usage of found with dedicated list iterator variable 2022-04-04 09:11:25 +01:00
iio_core_trigger.h iio: core-trigger: make iio_device_register_trigger_consumer() an int return 2021-03-11 20:47:02 +00:00
iio_core.h iio: Mark iio_device_type as const 2021-11-17 17:51:35 +00:00
industrialio-buffer.c iio: Replace strtobool() with kstrtobool() 2022-04-28 19:22:54 +01:00
industrialio-configfs.c
industrialio-core.c iio: core: Convert to use firmware node handle instead of OF node 2022-04-28 19:22:55 +01:00
industrialio-event.c iio: Replace strtobool() with kstrtobool() 2022-04-28 19:22:54 +01:00
industrialio-sw-device.c
industrialio-sw-trigger.c
industrialio-trigger.c iio: core: Move the currentmode entry to the opaque structure 2022-04-10 16:23:01 +01:00
industrialio-triggered-event.c iio: core: move @id from struct iio_dev to struct iio_dev_opaque 2021-05-17 13:49:13 +01:00
inkern.c iio: inkern: make a best effort on offset calculation 2022-01-30 14:38:03 +00:00
Kconfig iio: add filter subfolder 2021-12-16 17:29:46 +00:00
Makefile iio: add filter subfolder 2021-12-16 17:29:46 +00:00
TODO