WSL2-Linux-Kernel/drivers/iio/pressure
Thomas Haemmerle f437c761fc iio: pressure: dps310: support negative temperature values
[ Upstream commit 9dd6b32e76ff714308964cd9ec91466a343dcb8b ]

The current implementation interprets negative values returned from
`dps310_calculate_temp` as error codes.
This has a side effect that when negative temperature values are
calculated, they are interpreted as error.

Fix this by using the return value only for error handling and passing a
pointer for the value.

Fixes: ba6ec48e76 ("iio: Add driver for Infineon DPS310")
Signed-off-by: Thomas Haemmerle <thomas.haemmerle@leica-geosystems.com>
Link: https://lore.kernel.org/r/20240415105030.1161770-2-thomas.haemmerle@leica-geosystems.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-06-16 13:39:37 +02:00
..
Kconfig
Makefile
abp060mg.c
bmp280-core.c iio: pressure: bmp280: Fix NULL pointer exception 2023-10-19 23:05:36 +02:00
bmp280-i2c.c
bmp280-regmap.c
bmp280-spi.c
bmp280.h
cros_ec_baro.c iio: cros: Register FIFO callback after sensor is registered 2022-08-17 14:23:55 +02:00
dlhl60d.c
dps310.c iio: pressure: dps310: support negative temperature values 2024-06-16 13:39:37 +02:00
hid-sensor-press.c
hp03.c
hp206c.c
icp10100.c
mpl115.c
mpl115.h
mpl115_i2c.c
mpl115_spi.c
mpl3115.c
ms5611.h iio: pressure: ms5611: fixed value compensation bug 2022-12-02 17:41:00 +01:00
ms5611_core.c iio: pressure: ms5611: ms5611_prom_is_valid false negative bug 2023-10-19 23:05:36 +02:00
ms5611_i2c.c iio: ms5611: Simplify IO callback parameters 2022-12-02 17:41:00 +01:00
ms5611_spi.c iio: ms5611: Simplify IO callback parameters 2022-12-02 17:41:00 +01:00
ms5637.c
st_pressure.h
st_pressure_buffer.c
st_pressure_core.c
st_pressure_i2c.c
st_pressure_spi.c
t5403.c
zpa2326.c
zpa2326.h
zpa2326_i2c.c
zpa2326_spi.c