linux/drivers/iio/light
Zhang Lixu 79dabbd505 iio: hid-sensor-prox: Fix incorrect OFFSET calculation
The OFFSET calculation in the prox_read_raw() was incorrectly using the
unit exponent, which is intended for SCALE calculations.

Remove the incorrect OFFSET calculation and set it to a fixed value of 0.

Cc: stable@vger.kernel.org
Fixes: 39a3a0138f ("iio: hid-sensors: Added Proximity Sensor Driver")
Signed-off-by: Zhang Lixu <lixu.zhang@intel.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Link: https://patch.msgid.link/20250331055022.1149736-4-lixu.zhang@intel.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2025-04-07 19:32:50 +01:00
..
Kconfig iio: light: Add support for AL3000a illuminance sensor 2025-03-04 13:17:48 +00:00
Makefile iio: light: Add support for AL3000a illuminance sensor 2025-03-04 13:17:48 +00:00
acpi-als.c
adjd_s311.c iio: light: Use aligned_s64 instead of open coding alignment. 2024-12-28 14:28:15 +00:00
adux1020.c iio: light: adux1020: Drop unneeded assignment for cache_type 2025-02-08 15:16:29 +00:00
al3000a.c iio: light: Add support for AL3000a illuminance sensor 2025-03-04 13:17:48 +00:00
al3010.c iio: light: al3010: Fix an error handling path in al3010_probe() 2024-09-30 09:21:03 +01:00
al3320a.c
apds9160.c iio: light: Add APDS9160 ALS & Proximity sensor driver 2025-02-08 15:16:29 +00:00
apds9300.c iio: light: apds9300: use bool for event state 2024-11-03 20:33:44 +00:00
apds9306.c iio: light: apds9306: fix max_scale_nano values 2025-02-03 19:30:10 +00:00
apds9960.c iio: light: apds9960: remove useless return 2024-11-03 20:33:44 +00:00
as73211.c IIO: 2nd set of fixes for the 6.13 cycle. 2025-01-16 13:46:08 +01:00
bh1745.c iio: light: bh1745: Stop using iio_device_claim_direct_scoped() 2025-02-17 13:03:48 +00:00
bh1750.c
bh1780.c
cm3232.c iio: light: cm3232: Reset before reading HW ID 2024-12-07 17:47:58 +00:00
cm3323.c
cm3605.c iio: Switch back to struct platform_driver::remove() 2024-10-10 19:31:50 +01:00
cm32181.c iio: light: Fix spelling mistake "regist" -> "register" 2025-03-04 14:50:52 +00:00
cm36651.c iio: light: Fix spelling mistake "regist" -> "register" 2025-03-04 14:50:52 +00:00
cros_ec_light_prox.c
gp2ap002.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
gp2ap020a00f.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
hid-sensor-als.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
hid-sensor-prox.c iio: hid-sensor-prox: Fix incorrect OFFSET calculation 2025-04-07 19:32:50 +01:00
iqs621-als.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
isl29018.c iio: light: isl29018: drop ACPI_PTR() and CONFIG_ACPI guards 2024-11-01 14:54:44 +00:00
isl29028.c
isl29125.c iio: light: Use aligned_s64 instead of open coding alignment. 2024-12-28 14:28:15 +00:00
isl76682.c
jsa1212.c
lm3533-als.c iio: Switch back to struct platform_driver::remove() 2024-10-10 19:31:50 +01:00
ltr390.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
ltr501.c iio: light: Use aligned_s64 instead of open coding alignment. 2024-12-28 14:28:15 +00:00
ltrf216a.c Linux 6.12-rc2 2024-10-12 11:43:29 +01:00
lv0104cs.c
max44000.c iio: light: Use aligned_s64 instead of open coding alignment. 2024-12-28 14:28:15 +00:00
max44009.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
noa1305.c iio: light: noa1305: Fix up integration time look up 2024-08-17 15:37:37 +01:00
opt3001.c iio: light: opt3001: fix deadlock due to concurrent flag access 2025-04-07 19:32:49 +01:00
opt4001.c
opt4060.c iio: light: Add support for TI OPT4060 color sensor 2024-12-28 14:28:13 +00:00
pa12203001.c
rohm-bu27034.c iio: light: Use aligned_s64 instead of open coding alignment. 2024-12-28 14:28:15 +00:00
rpr0521.c iio: light: Use aligned_s64 instead of open coding alignment. 2024-12-28 14:28:15 +00:00
si1133.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
si1145.c iio: light: si1145: use new '.masklength' accessors 2024-08-03 10:13:40 +01:00
st_uvis25.h iio: light: Use aligned_s64 instead of open coding alignment. 2024-12-28 14:28:15 +00:00
st_uvis25_core.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
st_uvis25_i2c.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
st_uvis25_spi.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
stk3310.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
tcs3414.c iio: light: Use aligned_s64 instead of open coding alignment. 2024-12-28 14:28:15 +00:00
tcs3472.c iio: light: Use aligned_s64 instead of open coding alignment. 2024-12-28 14:28:15 +00:00
tsl2563.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
tsl2583.c
tsl2591.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
tsl2772.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
tsl4531.c
us5182d.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
vcnl4000.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
vcnl4035.c iio: light: vcnl4035: fix information leak in triggered buffer 2024-12-07 17:23:41 +00:00
veml3235.c iio: light: veml3235: fix scale to conform to ABI 2025-01-04 12:36:39 +00:00
veml6030.c iio: light: veml6030: fix scale to conform to ABI 2025-02-08 15:16:29 +00:00
veml6040.c
veml6070.c iio: light: veml6070: add support for integration time 2024-11-03 20:33:42 +00:00
veml6075.c iio: light: Add check for array bounds in veml6075_read_int_time_ms 2025-03-11 19:09:17 +00:00
vl6180.c iio: light: vl6180: Add support for Continuous Mode 2024-10-15 18:59:51 +01:00
zopt2201.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00