Skip to content

Commit 8f4c957

Browse files
Michael Steckleinjic23
authored andcommitted
iio: humidity: hdc100x: document compatible HDC10xx devices
Include datasheet links, add i2c_device_id entries, and update kconfig help for compatible HDC10xx devices: HDC1000, HDC1008, HDC1010, HDC1050, and HDC1080. Signed-off-by: Michael Stecklein <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
1 parent b7eec14 commit 8f4c957

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

drivers/iio/humidity/Kconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ config HDC100X
3131
select IIO_TRIGGERED_BUFFER
3232
help
3333
Say yes here to build support for the Texas Instruments
34-
HDC1000 and HDC1008 relative humidity and temperature sensors.
34+
HDC1000, HDC1008, HDC1010, HDC1050, and HDC1080 relative
35+
humidity and temperature sensors.
3536

3637
To compile this driver as a module, choose M here: the module
3738
will be called hdc100x.

drivers/iio/humidity/hdc100x.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414
* GNU General Public License for more details.
1515
*
16+
* Datasheets:
17+
* http://www.ti.com/product/HDC1000/datasheet
18+
* http://www.ti.com/product/HDC1008/datasheet
19+
* http://www.ti.com/product/HDC1010/datasheet
20+
* http://www.ti.com/product/HDC1050/datasheet
21+
* http://www.ti.com/product/HDC1080/datasheet
1622
*/
1723

1824
#include <linux/delay.h>
@@ -414,6 +420,11 @@ static int hdc100x_remove(struct i2c_client *client)
414420

415421
static const struct i2c_device_id hdc100x_id[] = {
416422
{ "hdc100x", 0 },
423+
{ "hdc1000", 0 },
424+
{ "hdc1008", 0 },
425+
{ "hdc1010", 0 },
426+
{ "hdc1050", 0 },
427+
{ "hdc1080", 0 },
417428
{ }
418429
};
419430
MODULE_DEVICE_TABLE(i2c, hdc100x_id);

0 commit comments

Comments
 (0)