hwmon: (sht3x) read out sensor serial number
authorStefan Gloor <code@stefan-gloor.ch>
Wed, 31 Jan 2024 11:15:12 +0000 (12:15 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 25 Feb 2024 20:37:36 +0000 (12:37 -0800)
commit9d613d9b8a9e54cc21379a40de29294adc1e6594
treec21070ec2c351b939a409e85e0ab37308489d374
parentf20b4a931130cb574c40563cfda0fc2cb944b4df
hwmon: (sht3x) read out sensor serial number

The temperature/humidity sensors of the STS3x/SHT3x family are
calibrated and factory-programmed with a unique serial number.
For some sensors, this serial number can be used to obtain a calibration
certificate via an API provided by the manufacturer (Sensirion).
Expose the serial number via debugfs.

Tested with: 2x STS31, 1x STS32, 1x SHT31

Signed-off-by: Stefan Gloor <code@stefan-gloor.ch>
Link: https://lore.kernel.org/r/20240131111512.25321-2-code@stefan-gloor.ch
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Documentation/hwmon/sht3x.rst
drivers/hwmon/sht3x.c