[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20251227164219.5ffa1b60@jic23-huawei>
Date: Sat, 27 Dec 2025 16:42:19 +0000
From: Jonathan Cameron <jic23@...nel.org>
To: David Lechner <dlechner@...libre.com>
Cc: Fiona Klute <fiona.klute@....de>, Roan van Dijk <roan@...tonic.nl>,
linux-iio@...r.kernel.org, Nuno Sá <nuno.sa@...log.com>, Andy
Shevchenko <andy@...nel.org>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] iio: chemical: scd4x: fix reported channel endianness
On Mon, 15 Dec 2025 10:41:04 -0600
David Lechner <dlechner@...libre.com> wrote:
> On 12/13/25 10:32 AM, Fiona Klute wrote:
> > The driver converts values read from the sensor from BE to CPU
> > endianness in scd4x_read_meas(). The result is then pushed into the
> > buffer in scd4x_trigger_handler(), so on LE architectures parsing the
> > buffer using the reported BE type gave wrong results.
> >
> > scd4x_read_raw() which provides sysfs *_raw values is not affected, it
> > used the values returned by scd4x_read_meas() without further
> > conversion.
> >
> > Fixes: 49d22b695cbb6 ("drivers: iio: chemical: Add support for Sensirion SCD4x CO2 sensor")
> > Signed-off-by: Fiona Klute <fiona.klute@....de>
> > ---
> Reviewed-by: David Lechner <dlechner@...libre.com>
>
>
Oops. Seems I queued this up but never replied to say I had done so
(or updated patchwork). This is on the fixes-togreg branch of iio.git.
Thanks,
Jonathan
Powered by blists - more mailing lists