Re: [PATCH 02/12] iio: adc: rohm-bd79124: Fix channel initialization

From: Jonathan Cameron

Date: Sun Aug 16 2026 - 21:23:45 EST


On Mon, 10 Aug 2026 10:50:21 +0300
Matti Vaittinen <matti.vaittinen@xxxxxxxxx> wrote:

> From: Matti Vaittinen <mazziesaccount@xxxxxxxxx>
>
> The alarm limit register on BD79124 span to two consecutive registers.
> The first register for high-limit containing also hysteresis
> configuration. The initialization in driver writes only one 8-bit
> register, overwriting the hysteresis and leaving the other limit
> register uninitialized.
>
> Fix the limit initialization by using the bd79124_write_int_to_reg(),
> which correctly initializes the limit on both of the registers.
>
> Signed-off-by: Matti Vaittinen <mazziesaccount@xxxxxxxxx>
> Fixes: 3f57a3b9ab74 ("iio: adc: Support ROHM BD79124 ADC")
Applied and marked for stable.