Andreas Klinger
ca90f67ece
iio: bmp280: fix compensation of humidity
...
[ Upstream commit dee2dabc0e4115b80945fe2c91603e634f4b4686 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-06-24 17:50:12 +02:00
..
accel
iio: sca3000: Remove an erroneous 'get_device()'
2020-05-27 17:46:45 +02:00
adc
iio: adc: stm32-adc: fix a wrong error message when probing interrupts
2020-06-10 20:24:56 +02:00
afe
amplifiers
Second set of IIO device support, features, cleanups and minor fixes for 5.3.
2019-07-01 10:58:13 +02:00
buffer
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
2019-06-19 17:09:55 +02:00
chemical
iio:chemical:pms7003: Fix timestamp alignment and prevent data leak.
2020-06-10 20:24:56 +02:00
common
iio: st_sensors: rely on odr mask to know if odr can be set
2020-04-29 16:33:12 +02:00
dac
iio: dac: vf610: Fix an error handling path in 'vf610_dac_probe()'
2020-05-27 17:46:45 +02:00
dummy
spi: docs: convert to ReST and add it to the kABI bookset
2019-07-31 14:13:13 -06:00
frequency
iio: frequency: adf4371: Fix output frequency setting
2019-08-05 17:38:33 +01:00
gyro
iio: st_gyro: Correct data for LSM9DS0 gyro
2020-02-01 09:34:36 +00:00
health
humidity
iio: humidity: hdc100x: fix IIO_HUMIDITYRELATIVE channel reporting
2019-12-17 19:55:42 +01:00
imu
iio: imu: st_lsm6dsx: Fix selection of ST_LSM6DS3_ID
2020-01-23 08:22:33 +01:00
light
iio: vcnl4000: Fix i2c swapped word reading.
2020-06-10 20:24:56 +02:00
magnetometer
iio: magnetometer: ak8974: Fix negative raw values in sysfs
2020-03-25 08:25:53 +01:00
multiplexer
orientation
potentiometer
iio: potentiometer: add a driver for Maxim 5432-5435
2019-08-05 14:25:08 +01:00
potentiostat
pressure
iio: bmp280: fix compensation of humidity
2020-06-24 17:50:12 +02:00
proximity
iio: srf04: fix wrong limitation in distance measuring
2019-10-12 14:31:09 +01:00
resolver
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
2019-06-19 17:09:55 +02:00
temperature
iio: max31856: add missing of_node and parent references to iio_dev
2019-12-31 16:42:46 +01:00
trigger
iio: trigger: stm32-timer: disable master mode when stopping
2020-03-25 08:25:53 +01:00
iio_core.h
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
2019-06-19 17:09:55 +02:00
iio_core_trigger.h
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
2019-06-19 17:09:55 +02:00
industrialio-buffer.c
iio: buffer: align the size of scan bytes to size of the largest element
2020-01-23 08:22:33 +01:00
industrialio-configfs.c
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
2019-06-19 17:09:55 +02:00
industrialio-core.c
Staging / IIO driver update for 5.3-rc1
2019-07-11 15:36:02 -07:00
industrialio-event.c
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
2019-06-19 17:09:55 +02:00
industrialio-sw-device.c
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
2019-06-19 17:09:55 +02:00
industrialio-sw-trigger.c
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
2019-06-19 17:09:55 +02:00
industrialio-trigger.c
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
2019-06-19 17:09:55 +02:00
industrialio-triggered-event.c
inkern.c
Driver Core and debugfs changes for 5.3-rc1
2019-07-12 12:24:03 -07:00
Kconfig
Second set of IIO device support, features, cleanups and minor fixes for 5.3.
2019-07-01 10:58:13 +02:00
Makefile