From: David Lechner <dlechner@baylibre.com>
To: Fiona Klute <fiona.klute@gmx.de>,
Roan van Dijk <roan@protonic.nl>,
linux-iio@vger.kernel.org
Cc: "Jonathan Cameron" <jic23@kernel.org>,
"Nuno Sá" <nuno.sa@analog.com>,
"Andy Shevchenko" <andy@kernel.org>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] iio: chemical: scd4x: fix reported channel endianness
Date: Mon, 15 Dec 2025 10:41:04 -0600 [thread overview]
Message-ID: <64181fc9-4795-4c5b-97de-a9482eea4bf4@baylibre.com> (raw)
In-Reply-To: <20251213163226.1678707-1-fiona.klute@gmx.de>
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@gmx.de>
> ---
Reviewed-by: David Lechner <dlechner@baylibre.com>
next prev parent reply other threads:[~2025-12-15 16:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-13 16:32 [PATCH] iio: chemical: scd4x: fix reported channel endianness Fiona Klute
2025-12-15 16:41 ` David Lechner [this message]
2025-12-27 16:42 ` Jonathan Cameron
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=64181fc9-4795-4c5b-97de-a9482eea4bf4@baylibre.com \
--to=dlechner@baylibre.com \
--cc=andy@kernel.org \
--cc=fiona.klute@gmx.de \
--cc=jic23@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nuno.sa@analog.com \
--cc=roan@protonic.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox