+41
−28
Loading
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: 3ad0e7e5 ("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>