linux/drivers/iio/proximity
Salah Triki e8dd273d19 iio: proximity: isl29501: Fix return type of isl29501_register_write
isl29501_register_write() was returning a u32 instead of an int.
Since the function returns negative error codes (such as -ERANGE or
return values from i2c_smbus_write_byte_data()), returning an unsigned
integer type prevents callers from correctly checking for negative error
conditions.

Fix this by changing the function return type from u32 to int.

This was found through manual code review.

Fixes: 1c28799257 ("iio: light: isl29501: Add support for the ISL29501 ToF sensor.")
Signed-off-by: Salah Triki <salah.triki@gmail.com>
Reviewed-by: Joshua Crofts <joshua.crofts1@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
2026-09-30 18:59:55 +01:00
..
as3935.c iio: proximity: Remove redundant dev_err()/dev_err_probe() 2026-07-27 22:13:08 +01:00
aw96103.c iio: proximity: aw96103: validate firmware data length 2026-08-31 00:52:41 +01:00
cros_ec_mkbp_proximity.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
d3323aa.c iio: proximity: Remove redundant dev_err()/dev_err_probe() 2026-07-27 22:13:08 +01:00
hx9023s.c iio: proximity: Remove redundant dev_err()/dev_err_probe() 2026-07-27 22:13:08 +01:00
irsd200.c iio: proximity: Remove redundant dev_err()/dev_err_probe() 2026-07-27 22:13:08 +01:00
isl29501.c iio: proximity: isl29501: Fix return type of isl29501_register_write 2026-09-30 18:59:55 +01:00
Kconfig iio: proximity: add driver for ST VL53L1X ToF sensor 2026-03-26 08:22:00 +00:00
Makefile iio: proximity: add driver for ST VL53L1X ToF sensor 2026-03-26 08:22:00 +00:00
mb1232.c iio: proximity: Remove redundant dev_err()/dev_err_probe() 2026-07-27 22:13:08 +01:00
ping.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
pulsedlight-lidar-lite-v2.c iio: proximity: pulsedlight: fix iio_device left registered on PM setup failure 2026-08-31 00:52:42 +01:00
rfd77402.c iio: Initialize i2c_device_id arrays using member names 2026-05-31 11:01:46 +01:00
srf04.c IIO new device support, features, cleanup for 7.3 2026-08-19 09:45:01 +02:00
srf08.c iio: Initialize i2c_device_id arrays using member names 2026-05-31 11:01:46 +01:00
sx_common.c iio: proximity: Remove redundant dev_err()/dev_err_probe() 2026-07-27 22:13:08 +01:00
sx_common.h iio: proximity: Use aligned_s64 instead of open coding alignment. 2024-12-28 14:28:15 +00:00
sx9310.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
sx9324.c iio: proximity: sx9324: Correct proximity channel resolution 2026-08-31 00:52:41 +01:00
sx9360.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
sx9500.c iio: Initialize i2c_device_id arrays using member names 2026-05-31 11:01:46 +01:00
vcnl3020.c iio: proximity: vcnl3020: fix ISR bitmask check in IRQ handler 2026-09-07 03:12:17 +01:00
vl53l1x-i2c.c iio: update email for Siratul Islam 2026-07-24 01:55:36 +01:00
vl53l0x-i2c.c iio: proximity: vl53l0x-i2c: claim direct mode for raw reads 2026-09-07 02:24:53 +01:00