Skip to content

Commit f1dfcba

Browse files
committed
iio: humidity: hdc3020: Add Makefile, Kconfig and MAINTAINERS entry
Something when wrong when applying the original patch and only the c file made it in. Here the rest of the changes are applied. Fixes: c9180b8 ("iio: humidity: Add driver for ti HDC302x humidity sensors") Reported-by: Lars-Peter Clausen <[email protected]> Cc: Javier Carrasco <[email protected]> Cc: Li peiyu <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]> Reviewed-by: Lars-Peter Clausen <[email protected]>
1 parent 35ec2d0 commit f1dfcba

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

MAINTAINERS

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22005,6 +22005,14 @@ F: Documentation/devicetree/bindings/media/i2c/ti,ds90*
2200522005
F: drivers/media/i2c/ds90*
2200622006
F: include/media/i2c/ds90*
2200722007

22008+
TI HDC302X HUMIDITY DRIVER
22009+
M: Javier Carrasco <[email protected]>
22010+
M: Li peiyu <[email protected]>
22011+
22012+
S: Maintained
22013+
F: Documentation/devicetree/bindings/iio/humidity/ti,hdc3020.yaml
22014+
F: drivers/iio/humidity/hdc3020.c
22015+
2200822016
TI ICSSG ETHERNET DRIVER (ICSSG)
2200922017
R: MD Danish Anwar <[email protected]>
2201022018
R: Roger Quadros <[email protected]>

drivers/iio/humidity/Kconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,18 @@ config HDC2010
4848
To compile this driver as a module, choose M here: the module
4949
will be called hdc2010.
5050

51+
config HDC3020
52+
tristate "TI HDC3020 relative humidity and temperature sensor"
53+
depends on I2C
54+
select CRC8
55+
help
56+
Say yes here to build support for the Texas Instruments
57+
HDC3020, HDC3021 and HDC3022 relative humidity and temperature
58+
sensors.
59+
60+
To compile this driver as a module, choose M here: the module
61+
will be called hdc3020.
62+
5163
config HID_SENSOR_HUMIDITY
5264
tristate "HID Environmental humidity sensor"
5365
depends on HID_SENSOR_HUB

drivers/iio/humidity/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ obj-$(CONFIG_AM2315) += am2315.o
77
obj-$(CONFIG_DHT11) += dht11.o
88
obj-$(CONFIG_HDC100X) += hdc100x.o
99
obj-$(CONFIG_HDC2010) += hdc2010.o
10+
obj-$(CONFIG_HDC3020) += hdc3020.o
1011
obj-$(CONFIG_HID_SENSOR_HUMIDITY) += hid-sensor-humidity.o
1112

1213
hts221-y := hts221_core.o \

0 commit comments

Comments
 (0)