OpenCloudOS-Kernel/drivers/iio/pressure
Thomas Haemmerle 08f5bd2032 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-12 11:12:20 +02:00
..
Kconfig iio: pressure: Honeywell mprls0025pa pressure sensor 2023-05-21 18:54:58 +01:00
Makefile iio: pressure: Honeywell mprls0025pa pressure sensor 2023-05-21 18:54:58 +01:00
abp060mg.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
bmp280-core.c iio: pressure: bmp280: Fix NULL pointer exception 2023-09-11 20:12:59 +01:00
bmp280-i2c.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
bmp280-regmap.c iio: pressure: bmp280: Add support for new sensor BMP580 2023-03-11 12:18:29 +00:00
bmp280-spi.c iio: pressure: Fixes BME280 SPI driver data 2024-05-17 12:02:31 +02:00
bmp280.h iio: pressure: bmp280: Add nvmem operations for BMP580 2023-03-11 12:18:29 +00:00
cros_ec_baro.c iio: cros: Register FIFO callback after sensor is registered 2022-07-18 18:29:13 +01:00
dlhl60d.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
dps310.c iio: pressure: dps310: support negative temperature values 2024-06-12 11:12:20 +02:00
hid-sensor-press.c iio: hid-sensor-press: Add timestamp channel 2021-08-09 20:17:36 +01:00
hp03.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
hp206c.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
icp10100.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
mpl115.c iio: pressure: mpl115: Implementing low power mode by shutdown gpio 2022-11-23 19:44:00 +00:00
mpl115.h iio: pressure: mpl115: Implementing low power mode by shutdown gpio 2022-11-23 19:44:00 +00:00
mpl115_i2c.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
mpl115_spi.c iio: pressure: mpl115: Implementing low power mode by shutdown gpio 2022-11-23 19:44:00 +00:00
mpl3115.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
mprls0025pa.c iio: pressure: mprls0025pa fix off-by-one enum 2024-03-26 18:20:04 -04:00
ms5611.h iio: pressure: ms5611: Switch to fully devm_ managed registration. 2022-12-28 17:19:45 +00:00
ms5611_core.c iio: pressure: ms5611: ms5611_prom_is_valid false negative bug 2023-10-05 18:06:46 +01:00
ms5611_i2c.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
ms5611_spi.c iio: pressure: ms5611: Switch to fully devm_ managed registration. 2022-12-28 17:19:45 +00:00
ms5637.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
st_pressure.h iio: pressure: st_pressure: Add support for LPS22DF 2022-09-21 18:42:53 +01:00
st_pressure_buffer.c iio:st-sensors: Remove duplicate MODULE_* 2022-02-18 11:36:54 +00:00
st_pressure_core.c iio: pressure: st_pressure: Add support for LPS22DF 2022-09-21 18:42:53 +01:00
st_pressure_i2c.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
st_pressure_spi.c iio: pressure: st_pressure: Add support for LPS22DF 2022-09-21 18:42:53 +01:00
t5403.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
zpa2326.c iio: Rename iio_trigger_poll_chained and add kernel-doc 2023-03-11 12:18:29 +00:00
zpa2326.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
zpa2326_i2c.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
zpa2326_spi.c Char/Misc and other driver updates for 5.18-rc1 2022-03-28 12:27:35 -07:00