android_kernel_motorola_sm6375/drivers/iio
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Zhang Lixu 19e7a58107 iio: hid-sensor-prox: Fix incorrect OFFSET calculation
[ Upstream commit 79dabbd505210e41c88060806c92c052496dd61c ]

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-28 16:21:33 +02:00
..
accel iio: adis16201: Correct inclinometer channel resolution 2025-06-04 14:32:26 +02:00
adc iio: adc: stm32-adc: Fix race in installing chained IRQ handler 2025-08-28 16:21:15 +02:00
addac
afe
amplifiers
buffer
chemical iio: chemical: sps30: use aligned_s64 for timestamp 2025-06-04 14:32:28 +02:00
common
dac
dummy
frequency
gyro iio: gyro: fxas21002c: Fix missing data update in trigger handler 2025-02-01 18:18:48 +01:00
health
humidity
imu iio: imu: st_lsm6dsx: fix possible lockup in st_lsm6dsx_read_tagged_fifo 2025-06-04 14:32:27 +02:00
light iio: hid-sensor-prox: Fix incorrect OFFSET calculation 2025-08-28 16:21:33 +02:00
magnetometer
multiplexer
orientation
potentiometer
potentiostat
pressure iio: pressure: zpa2326: Use aligned_s64 for the timestamp 2025-07-17 18:24:50 +02:00
proximity iio: proximity: isl29501: fix buffered read on big-endian systems 2025-08-28 16:21:32 +02:00
resolver
temperature
trigger
iio_core.h
iio_core_trigger.h
industrialio-buffer.c
industrialio-configfs.c
industrialio-core.c
industrialio-event.c
industrialio-sw-device.c
industrialio-sw-trigger.c
industrialio-trigger.c
industrialio-triggered-event.c
inkern.c iio: inkern: call iio_device_put() only on mapped devices 2025-02-01 18:18:48 +01:00
Kconfig
Makefile