linux-yocto/drivers/iio
Zhang Lixu 90d5cd64f4 iio: hid-sensor-prox: Fix incorrect OFFSET calculation
[ Upstream commit 79dabbd505 ]

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>
[ adapted prox_attr array access to single structure member access ]
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-08-01 09:48:47 +01:00
..
accel iio: common: st_sensors: Fix use of uninitialize device structs 2025-07-24 08:56:28 +02:00
adc iio: adc: ad7949: use spi_is_bpw_supported() 2025-08-01 09:48:40 +01:00
addac move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
afe
amplifiers IIO: 1st set of fixes for the 6.12 cycle. 2024-10-13 17:23:47 +02:00
buffer Merge 6.11-rc7 into char-misc-next 2024-09-09 08:36:23 +02:00
cdc move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
chemical iio: chemical: sps30: use aligned_s64 for timestamp 2025-05-22 14:29:37 +02:00
common iio: common: st_sensors: Fix use of uninitialize device structs 2025-07-24 08:56:28 +02:00
dac iio: dac: ad3552r-common: fix ad3541/2r ranges 2025-07-06 11:01:49 +02:00
dummy iio: dummy: iio_simply_dummy_buffer: fix information leak in triggered buffer 2025-01-17 13:40:56 +01:00
filter iio: filter: admv8818: Support frequencies >= 2^32 2025-06-19 15:32:12 +02:00
frequency IIO: 1st set of fixes for the 6.12 cycle. 2024-10-13 17:23:47 +02:00
gyro iio: gyro: fxas21002c: Fix missing data update in trigger handler 2025-01-17 13:40:57 +01:00
health move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
humidity move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
imu iio: imu: inv_icm42600: Fix temperature calculation 2025-06-27 11:11:26 +01:00
light iio: hid-sensor-prox: Fix incorrect OFFSET calculation 2025-08-01 09:48:47 +01:00
magnetometer iio: magnetometer: fix if () scoped_guard() formatting 2024-12-14 20:03:38 +01:00
multiplexer
orientation
position
potentiometer
potentiostat
pressure iio: pressure: zpa2326: Use aligned_s64 for the timestamp 2025-07-06 11:01:34 +02:00
proximity IIO: 1st set of fixes for the 6.12 cycle. 2024-10-13 17:23:47 +02:00
resolver iio: resolver: ad2s1210: add missing select (TRIGGERED_)BUFFER in Kconfig 2024-10-06 16:30:38 +01:00
temperature iio: temp: maxim-thermocouple: Fix potential lack of DMA safe buffer. 2025-05-18 08:24:56 +02:00
test
trigger
iio_core_trigger.h
iio_core.h
industrialio-acpi.c
industrialio-backend.c iio: backend: fix out-of-bound write 2025-07-24 08:56:28 +02:00
industrialio-buffer.c iio: core: annotate masklength as __private 2024-08-03 10:13:43 +01:00
industrialio-configfs.c
industrialio-core.c iio: Fix spelling mistake "avaialable" -> "available" 2024-08-10 11:23:39 +01:00
industrialio-event.c
industrialio-gts-helper.c iio: gts: fix infinite loop for gain_to_scaletables() 2024-12-09 10:41:10 +01:00
industrialio-sw-device.c
industrialio-sw-trigger.c
industrialio-trigger.c iio: trigger: allow devices to suspend/resume theirs associated trigger 2024-08-10 11:19:36 +01:00
industrialio-triggered-event.c
inkern.c iio: inkern: call iio_device_put() only on mapped devices 2025-01-17 13:40:58 +01:00
Kconfig
Makefile
TODO