kernel_samsung_a53x/drivers/iio/pressure
Thomas Haemmerle 9b0dffbf5e 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: ba6ec48e76bc ("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-11-19 12:27:03 +01:00
..
abp060mg.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bmp280-core.c iio: pressure: bmp280: Fix NULL pointer exception 2024-11-08 11:25:49 +01:00
bmp280-i2c.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bmp280-regmap.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bmp280-spi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bmp280.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cros_ec_baro.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dlhl60d.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dps310.c iio: pressure: dps310: support negative temperature values 2024-11-19 12:27:03 +01:00
hid-sensor-press.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hp03.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hp206c.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
icp10100.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mpl115.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mpl115.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mpl115_i2c.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mpl115_spi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mpl3115.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ms5611.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ms5611_core.c iio: pressure: ms5611: ms5611_prom_is_valid false negative bug 2024-11-08 11:25:49 +01:00
ms5611_i2c.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ms5611_spi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ms5637.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
st_pressure.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
st_pressure_buffer.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
st_pressure_core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
st_pressure_i2c.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
st_pressure_spi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
t5403.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
zpa2326.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
zpa2326.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
zpa2326_i2c.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
zpa2326_spi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00