Re: [PATCH 0/3] iio: hid-sensor-prox: fix SCALE and OFFSET calculation

From: Jonathan Cameron
Date: Mon Mar 31 2025 - 07:00:57 EST


On Mon, 31 Mar 2025 13:50:19 +0800
Zhang Lixu <lixu.zhang@xxxxxxxxx> wrote:

> This patch series addresses issues in the hid-sensor-prox driver related to
> SCALE and OFFSET calculations. The changes include restoring lost scale
> assignments, supporting multi-channel SCALE calculation, and fixing incorrect
> OFFSET calculation.
>
Hi.

Generally I prefer to see review tags (Srinivas' Acks here) given on list
but in I trust Srinivas to have done a thorough review (or to shout when he
sees this!) and the changes look correct to me, applied to the fixes-togreg-testing
branch of iio.git.

Odd point in merge cycle hence the odd temporary branch.

Jonathan

>
> Zhang Lixu (3):
> iio: hid-sensor-prox: Restore lost scale assignments
> iio: hid-sensor-prox: support multi-channel SCALE calculation
> iio: hid-sensor-prox: Fix incorrect OFFSET calculation
>
> .../hid-sensors/hid-sensor-attributes.c | 4 ++++
> drivers/iio/light/hid-sensor-prox.c | 22 ++++++++++++-------
> 2 files changed, 18 insertions(+), 8 deletions(-)
>
>
> base-commit: e21edb1638e82460f126a6e49bcdd958d452929c