f437c761fc
[ 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:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
abp060mg.c | ||
bmp280-core.c | ||
bmp280-i2c.c | ||
bmp280-regmap.c | ||
bmp280-spi.c | ||
bmp280.h | ||
cros_ec_baro.c | ||
dlhl60d.c | ||
dps310.c | ||
hid-sensor-press.c | ||
hp03.c | ||
hp206c.c | ||
icp10100.c | ||
mpl115.c | ||
mpl115.h | ||
mpl115_i2c.c | ||
mpl115_spi.c | ||
mpl3115.c | ||
ms5611.h | ||
ms5611_core.c | ||
ms5611_i2c.c | ||
ms5611_spi.c | ||
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 |