tmp_suning_uos_patched/drivers/iio/pressure
Andreas Klinger dee2dabc0e iio: bmp280: fix compensation of humidity
Limit the output of humidity compensation to the range between 0 and 100
percent.

Depending on the calibration parameters of the individual sensor it
happens, that a humidity above 100 percent or below 0 percent is
calculated, which don't make sense in terms of relative humidity.

Add a clamp to the compensation formula as described in the datasheet of
the sensor in chapter 4.2.3.

Although this clamp is documented, it was never in the driver of the
kernel.

It depends on the circumstances (calibration parameters, temperature,
humidity) if one can see a value above 100 percent without the clamp.
The writer of this patch was working with this type of sensor without
noting this error. So it seems to be a rare event when this bug occures.

Signed-off-by: Andreas Klinger <ak@it-klinger.de>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2020-05-11 20:19:19 +01:00
..
abp060mg.c
bmp280-core.c iio: bmp280: fix compensation of humidity 2020-05-11 20:19:19 +01:00
bmp280-i2c.c
bmp280-regmap.c
bmp280-spi.c
bmp280.h
cros_ec_baro.c iio: cros_ec: Expose hwfifo_timeout 2020-03-28 22:04:33 +01:00
dlhl60d.c
dps310.c
hid-sensor-press.c iio: hid-sensors: move triggered buffer setup into hid_sensor_setup_trigger 2020-05-10 09:35:53 +01:00
hp03.c
hp206c.c iio: pressure: hp206c: Use get_unaligned_be24() 2020-05-03 09:47:20 +01:00
icp10100.c counter: 104-quad-8: Support Filter Clock Prescaler 2020-03-08 17:28:52 +00:00
Kconfig
Makefile
mpl115_i2c.c
mpl115_spi.c
mpl115.c
mpl115.h
mpl3115.c
ms5611_core.c
ms5611_i2c.c iio: pressure: ms5611: Use get_unaligned_be24() 2020-05-03 09:47:20 +01:00
ms5611_spi.c iio: pressure: ms5611: Use get_unaligned_be24() 2020-05-03 09:47:20 +01:00
ms5611.h
ms5637.c
st_pressure_buffer.c
st_pressure_core.c iio: st_sensors: Drop unneeded explicit castings 2020-03-21 10:26:21 +00:00
st_pressure_i2c.c
st_pressure_spi.c
st_pressure.h
t5403.c
zpa2326_i2c.c
zpa2326_spi.c
zpa2326.c iio: pressure: zpa2326: Use get_unaligned_le24() 2020-05-03 09:47:20 +01:00
zpa2326.h