Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iio: si7020: add support for Hoperf th06

This patch adds support for Hoperf th06 humidity and
temperature sensor as it uses same register definitions
as si7020

th06 Datasheet: http://www.hoperf.com/upload/sensor/TH06.pdf

Signed-off-by: Cristina Moraru <cristina.moraru09@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>

authored by

Cristina Moraru and committed by
Jonathan Cameron
920dad0c 3f420265

+3 -1
+2 -1
drivers/iio/humidity/Kconfig
··· 51 51 depends on I2C 52 52 help 53 53 Say yes here to build support for the Silicon Labs Si7013/20/21 54 - Relative Humidity and Temperature Sensors. 54 + Relative Humidity and Temperature Sensors. This driver also 55 + supports Hoperf TH06 Humidity and Temperature Sensor. 55 56 56 57 To compile this driver as a module, choose M here: the module 57 58 will be called si7020.
+1
drivers/iio/humidity/si7020.c
··· 149 149 150 150 static const struct i2c_device_id si7020_id[] = { 151 151 { "si7020", 0 }, 152 + { "th06", 0 }, 152 153 { } 153 154 }; 154 155 MODULE_DEVICE_TABLE(i2c, si7020_id);