hwmon: (sht3x) add medium repeatability support
authorJuenKit Yip <JuenKit_Yip@hotmail.com>
Fri, 16 Jun 2023 16:00:15 +0000 (00:00 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Sat, 17 Jun 2023 15:56:42 +0000 (08:56 -0700)
commit3d2c211c0d2b5955b4ec9a1af7d59e8bed00c7fe
treece0ff41b881c50a952af0a2f1f22ead01c97c568
parent7d6d53ba3bccc5497e5bda5da4868c410f3eaa02
hwmon: (sht3x) add medium repeatability support

Add support for medium repeatability.

Per datasheet:

The stated repeatability is 3 times the standard deviation (3σ)
of multiple consecutive measurements at the stated repeatability
and at constant ambient conditions. It is a measure for the noise
on the physical sensor output. Different measurement modes allow
for high/medium/low repeatability.

For the humidity sensor, repeatability is documented as
0.25% RH for low repeatability, 0.15% RH for medium repeatability,
and 0.10% RH for high repeatability. Support all three modes.

Signed-off-by: JuenKit Yip <JuenKit_Yip@hotmail.com>
Link: https://lore.kernel.org/r/DB4PR10MB6261A70CD0444248ADDCC3219258A@DB4PR10MB6261.EURPRD10.PROD.OUTLOOK.COM
[groeck: Added details to description]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/sht3x.c