linux/drivers/iio/humidity
Dimitri Fedrau 9434c58b8e iio: humditiy: hdc3020: fix units for thresholds and hysteresis
commit cb372b4f46 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2025-12-07 06:24:58 +09:00
..
am2315.c iio: humidity: am2315: make use of iio_for_each_active_channel() 2024-08-03 10:13:40 +01:00
dht11.c iio: humidity: dht11: Switch from of headers to mod_devicetable.h 2022-02-06 15:21:43 +00:00
ens210.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
hdc100x.c iio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-27 09:48:57 +01:00
hdc2010.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
hdc3020.c iio: humditiy: hdc3020: fix units for thresholds and hysteresis 2025-12-07 06:24:58 +09:00
hid-sensor-humidity.c iio: humidity: hid-sensor-humidity: Convert to platform remove callback returning void 2023-09-23 15:06:55 +01:00
hts221.h iio: humidity: hts211: Use devm_regulator_get_enable() 2022-11-23 19:44:02 +00:00
hts221_buffer.c iio: Rename iio_trigger_poll_chained and add kernel-doc 2023-03-11 12:18:29 +00:00
hts221_core.c iio: humidity: hts211: drop casting to void in dev_set_drvdata 2024-03-25 20:10:12 +00:00
hts221_i2c.c iio: humidity: hts221: Drop ACPI_PTR() usage 2024-01-23 22:06:55 +00:00
hts221_spi.c iio: humidity: hts221: Move symbol exports into IIO_HTS221 namespace 2022-06-15 22:07:09 +01:00
htu21.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +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
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