mirror-linux/drivers/iio/humidity
Dimitri Fedrau cb372b4f46 iio: humditiy: hdc3020: fix units for thresholds and hysteresis
According to the ABI the units after application of scale and offset are
milli degree celsius for temperature thresholds and milli percent for
relative humidity thresholds. Currently the resulting units are degree
celsius for temperature thresholds and hysteresis and percent for relative
humidity thresholds and hysteresis. Change scale factor to fix this issue.

Fixes: 3ad0e7e5f0 ("iio: humidity: hdc3020: add threshold events support")
Reported-by: Chris Lesiak <chris.lesiak@licorbio.com>
Reviewed-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Signed-off-by: Dimitri Fedrau <dimitri.fedrau@liebherr.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2025-10-19 11:46:24 +01:00
..
Kconfig iio: humidity: Add support for ENS210 2024-08-17 15:37:37 +01:00
Makefile iio: humidity: Add support for ENS210 2024-08-17 15:37:37 +01:00
am2315.c iio: humidity: Drop unnecessary -ENOMEM messages 2025-08-25 12:35:39 +01:00
dht11.c iio: humidity: Drop unnecessary -ENOMEM messages 2025-08-25 12:35:39 +01:00
ens210.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
hdc100x.c iio: humidity: hdc100x: Switch to sparse friendly iio_device_claim/release_direct() 2025-04-22 19:09:59 +01:00
hdc2010.c iio: humidity: hdc2010: Switch to sparse friendly iio_device_claim/release_direct() 2025-04-22 19:09:59 +01:00
hdc3020.c iio: humditiy: hdc3020: fix units for thresholds and hysteresis 2025-10-19 11:46:24 +01:00
hid-sensor-humidity.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
hts221.h iio: humidity: Use aligned_s64 instead of open coding alignment. 2024-12-28 14:28:15 +00:00
hts221_buffer.c iio: humidity: hts221: use irq_get_trigger_type() 2024-09-30 09:20:58 +01:00
hts221_core.c iio: humidity: hts211: Switch to sparse friendly iio_device_claim/release_direct() 2025-04-22 19:09:59 +01:00
hts221_i2c.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
hts221_spi.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
htu21.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
si7005.c iio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-27 09:48:57 +01:00
si7020.c iio: humidity: si7020: add heater support 2024-06-13 19:19:23 +01:00