linux_dsm_epyc7002/drivers/iio/humidity
Nicola Corna ecf7e207a5 iio: humidity: si7020: replaced bitmask on humidity values with range check
The maximum possible value for the relative humidity is 55575 (100%RH).
This value, if shifted right by 2 bits, uses 14 bits and masking it with
a 12 bit mask removes 2 meaningful bits.
The masking has been replaced with a range check that sets the minimum
value at 786 (0%RH) and the maximum at 13893 (99.998%RH).

Signed-off-by: Nicola Corna <nicola@corna.info>
Reviewed-by: Hartmut Knaack <knaack.h@gmx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2015-08-24 19:41:16 +01:00
..
dht11.c iio: dht11: Use new function ktime_get_resolution_ns() 2015-07-20 18:41:20 +01:00
Kconfig iio: Allow compile test of GPIO consumers if !GPIOLIB 2015-05-10 20:31:43 +01:00
Makefile IIO: add si7020 driver 2014-10-04 12:43:30 +01:00
si7005.c iio: Drop owner assignment from i2c_driver 2015-07-11 18:50:07 +01:00
si7020.c iio: humidity: si7020: replaced bitmask on humidity values with range check 2015-08-24 19:41:16 +01:00