summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorFiona Klute <fiona.klute@gmx.de>2025-12-13 17:32:26 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-01-30 10:32:23 +0100
commitde8755ae2912d483141f413c34fc72da515a5180 (patch)
tree51a8cde980412192609533cc116b0a7adff6e829 /tools/perf/scripts/python/stackcollapse.py
parentd06a4f6c2b18663d1eaa48ea8a4429b496c7e72e (diff)
iio: chemical: scd4x: fix reported channel endianness
commit 81d5a5366d3c20203fb9d7345e1aa46d668445a2 upstream. 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> Cc: <stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions