android_kernel_sony_sdm845/drivers/iio
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Andreas Klinger 6dd652f672 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-30 15:38:21 -04:00
..
accel iio: fix center temperature of bmc150-accel-core 2019-11-06 12:18:05 +01:00
adc iio:ad7797: Use correct attribute_group 2020-05-10 10:28:00 +02:00
amplifiers
buffer iio:buffer: make length types match kfifo types 2018-07-03 11:23:11 +02:00
chemical iio: chemical: atlas-ph-sensor: correct IIO_TEMP values to millicelsius 2019-02-15 08:07:37 +01:00
common iio: common: ssp_sensors: Initialize calculated_time in ssp_common_process_data 2019-05-31 06:48:27 -07:00
dac iio: dac: vf610: Fix an error handling path in 'vf610_dac_probe()' 2020-05-27 16:42:02 +02:00
dummy iio: dummy: events: Add missing break 2017-10-27 10:38:06 +02:00
frequency iio: ad9523: Fix return value for ad952x_store() 2018-09-09 20:01:22 +02:00
gyro iio: gyro: st_gyro: fix L3GD20H support 2020-02-05 13:05:44 +00:00
health iio: health: max30100: fixed parenthesis around FIFO count check 2017-02-09 08:08:30 +01:00
humidity iio: humidity: hdc100x: fix IIO_HUMIDITYRELATIVE channel reporting 2019-12-21 10:41:52 +01:00
imu iio: imu: adis16480: assign bias value only if operation succeeded 2020-01-23 08:19:35 +01:00
light iio: vcnl4000: Fix i2c swapped word reading. 2020-06-11 09:22:23 +02:00
magnetometer iio: magnetometer: ak8974: Fix negative raw values in sysfs 2020-04-02 17:20:24 +02:00
orientation
potentiometer
pressure iio: bmp280: fix compensation of humidity 2020-06-30 15:38:21 -04:00
proximity iio: proximity: sx9500: claim direct mode during raw proximity reads 2017-11-15 15:53:14 +01:00
temperature
trigger iio: trigger: free trigger resource correctly 2017-11-15 15:53:14 +01:00
iio_core.h
iio_core_trigger.h
industrialio-buffer.c iio: buffer: align the size of scan bytes to size of the largest element 2020-01-23 08:19:38 +01:00
industrialio-configfs.c
industrialio-core.c iio: core: Return error for failed read_reg 2017-10-12 11:51:18 +02:00
industrialio-event.c
industrialio-sw-device.c
industrialio-sw-trigger.c
industrialio-trigger.c
industrialio-triggered-event.c
inkern.c
Kconfig
Makefile