]> www.infradead.org Git - users/willy/xarray.git/commit
iio: hid-sensor-prox: support multi-channel SCALE calculation
authorZhang Lixu <lixu.zhang@intel.com>
Mon, 31 Mar 2025 05:50:21 +0000 (13:50 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 7 Apr 2025 18:32:49 +0000 (19:32 +0100)
commit8b518cdb03f5f6e06d635cbfd9583d1fdbb39bfd
treeaccd04396380e3e057a58eeb787d2cf57214dd32
parent83ded7cfaccccd2f4041769c313b58b4c9e265ad
iio: hid-sensor-prox: support multi-channel SCALE calculation

With the introduction of multi-channel support in commit 596ef5cf654b
("iio: hid-sensor-prox: Add support for more channels"), each channel
requires an independent SCALE calculation, but the existing code only
calculates SCALE for a single channel.

Addresses the problem by modifying the driver to perform independent
SCALE calculations for each channel.

Cc: stable@vger.kernel.org
Fixes: 596ef5cf654b ("iio: hid-sensor-prox: Add support for more channels")
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-3-lixu.zhang@intel.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/common/hid-sensors/hid-sensor-attributes.c
drivers/iio/light/hid-sensor-prox.c