From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,UNWANTED_LANGUAGE_BODY autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C99A7C433E0 for ; Mon, 18 May 2020 19:13:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 95BFB20826 for ; Mon, 18 May 2020 19:13:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=trafsysas.onmicrosoft.com header.i=@trafsysas.onmicrosoft.com header.b="NGD6g8jR" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726949AbgERTNW (ORCPT ); Mon, 18 May 2020 15:13:22 -0400 Received: from mail-eopbgr10104.outbound.protection.outlook.com ([40.107.1.104]:13445 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726640AbgERTNV (ORCPT ); Mon, 18 May 2020 15:13:21 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=E+VKkuXsSr2ZD00cYUGI791hojIHdUZ/X1CW9g91xeUf0DzVOACW2FfspPPtvysGaudDZCtJtSz6HhGMYw8Rbn7CeH39UZUMglco+aV+5EqUwGu+UqoRmuUZo1Xhhqt0HuIwRfkhilzj4K86K7J4PzKpXXPS9QvhEi/5Dr++tBSr2NRK26b9TbHF4epO+4+F/wJo4VqezeXum5/tUYdKAxyzBebTOqUIpJt42c8ospBSBIn1FgXJP76of0fOSY0KhVptcUuhT+EZrlxOorhgG/e30y3fDlFVPPjLM8fCEVSMqh8rilQ0Z9cCrBPfijCgBqONgthCbDt3BKpw9CrliA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=w1htmOTULfk41UQq7ClzsfnXcA3Wdo3ItAhUytW8vPU=; b=OB7GCbVVPPWmVz3vMHoAQO2VONFTX5CcHadILvYNOOA5jWClOEYjiIlYtHC8d4fvNP4H/Rj4jwe2H0sIVp7dIVdGVwCs80I2IX6juZNoFLq/O8q86Ltqu6qbbHpf6MgaAs0qrh7yVtnq8aOVdveK0O4qxIOcL9QupZJ1KcPmymlcLm2RKWtHZVPKp4APeM6qAwxcK5QiDtcJ5mdXFPEDpJtP19ILE/2rz0BSdAhstTPMsmLCs0ZObMBxEFNvM4VYgiTDVxqWMpQcXwdVe5foykDaaqDX2xIliQAoHj8LQGBJY1qfUFFgCENJ87StAQsATErN66kUuP6ZceFuLMoP9g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=norphonic.com; dmarc=pass action=none header.from=norphonic.com; dkim=pass header.d=norphonic.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trafsysas.onmicrosoft.com; s=selector2-trafsysas-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=w1htmOTULfk41UQq7ClzsfnXcA3Wdo3ItAhUytW8vPU=; b=NGD6g8jRYafcmXBlm6koo6eqCsw8hb7C+Q3txmMtZd4a9/pJVp0DxKEA40Lh4/LF/JIyInQndbXUxY7Tt//0t3yfOVzzRxcQCI5nieF0sCUcFwFwim+pWNnKK9L6EDDtwh5PElR+pV39Fpe5xpyCUmCjleYyCjyqy//05yxdrBc= Received: from AM6PR06MB5430.eurprd06.prod.outlook.com (2603:10a6:20b:86::11) by AM6PR06MB6088.eurprd06.prod.outlook.com (2603:10a6:20b:f4::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.20; Mon, 18 May 2020 19:13:14 +0000 Received: from AM6PR06MB5430.eurprd06.prod.outlook.com ([fe80::6505:f0e6:d0df:c1c0]) by AM6PR06MB5430.eurprd06.prod.outlook.com ([fe80::6505:f0e6:d0df:c1c0%5]) with mapi id 15.20.3000.034; Mon, 18 May 2020 19:13:14 +0000 From: Eugene Zalkonnikov To: Jonathan Cameron CC: Hartmut Knaack , Lars-Peter Clausen , "development@norphonic.com" , "linux-iio@vger.kernel.org" Subject: [PATCH v7 1/2] Driver for TI HDC20x0 humidity and temperature sensors Thread-Topic: [PATCH v7 1/2] Driver for TI HDC20x0 humidity and temperature sensors Thread-Index: AQHWLUhhseWiFCLat0iTVn/xR1QMdw== Date: Mon, 18 May 2020 19:13:14 +0000 Message-ID: <2A0D3CFF-796F-4DEC-8432-CFE52F8A22F7@norphonic.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=norphonic.com; x-originating-ip: [85.165.43.54] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e295c809-59ba-4fb8-bbba-08d7fb5f83bf x-ms-traffictypediagnostic: AM6PR06MB6088: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 04073E895A x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: h1pmQ4WqsAZa3TLIP0efa8AQx2vKXZBh7dNJiobJleInlkb3HthGhKD06dpL4u1A3pf9uFsP4KuSnhaEYFc/BN+u9s377XQrr2QKV+GjJWxjIZ0Dfp6uV8u6WbfYa8nXYF2bwq/oB89QP+KcloPMVAnPn8L4IsY6C3hONK2IFuFHrEgHm83OYBtTpDgjZxS9to1UFGftVaB+YjaqRkRVl5aONVZWJk42726j01i9zZcwxo7FVaJksRA8Px8rccEzA09NHkk4EPa1EBqaMFFj8Ur/1pHezJF3NCxhSe8mN6euT+Ng+8zkdB6qOq4KHxVx331ugmXezfQ3ABFzoCfC53fa6nB3FdFqeiatqXuOooZAnIpbixFeqm1kOkMvaKsxkG5rZZBZRwlU3MQdWPPheHFuLTtakjsoRYxt3d/mogVqiMNWS0wJT4QxNzSrPJO2L22xy6xzzDGqcWo0ciGhw3iPQqdlNW4XzjvDH8vJ0eq8E/Rx1bqhHR5cr2TBsU3X3K9FiwYi59Fcq+x0BryWkA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR06MB5430.eurprd06.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(136003)(366004)(346002)(39830400003)(396003)(376002)(66946007)(66476007)(71200400001)(4326008)(8936002)(6506007)(316002)(2906002)(186003)(36756003)(6512007)(33656002)(5660300002)(91956017)(30864003)(508600001)(66556008)(64756008)(66446008)(6916009)(76116006)(6486002)(8676002)(966005)(2616005)(26005)(86362001)(54906003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: 2CTccU6BKxIhzA9PQaSenTHzbGroVJCPhTQ0gCGJFJsiaUpdComDG5IrggR5VcUfo3SLlvQafXe3qjhz+dwKL4fH1I82sb5qGN6ksorb/6wfa6Cf+GbZD3EBsS7MvcfxmzX2d3Ql3Q14DZS06/67cLXlxFoInD4WNhG57HnuIEaZtHI9voyv7WiFAb+hSwY8t2wPuznctwqKZIMLIc0uVbWWafKjPwbVFdSbe0/0GoT+vCMhfbKGivE00skLR4cLJ0Cny7405294gfcLKkv4Aq6GmvyDBsZ1/VxBVRbzAUjgaGjaXrmVBfblr+/lvWkjlW0Kq6NRkPW8N6sJ4GneX9ES5P7cvvr1YleQ+ok9pKfOD8AqNa6seV62Rfu9rTNrfA2YnKy8G1oRDDABCPnjry0gfu5oE8xUcIK4bDvETO8jg6XBtlfekDiskdn6YD4vFVhZRN/bFVDV16JBRaYyqkcxSYsoihc8unDwjlqW0j0= Content-Type: text/plain; charset="us-ascii" Content-ID: <1CB1D3247A4FE24AB1A1D68212F58731@eurprd06.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: norphonic.com X-MS-Exchange-CrossTenant-Network-Message-Id: e295c809-59ba-4fb8-bbba-08d7fb5f83bf X-MS-Exchange-CrossTenant-originalarrivaltime: 18 May 2020 19:13:14.5231 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: cbf3f496-45ad-415e-97cb-4e62d6cd974f X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: z4ipqaV5YKx5W6x35mLxfuzkqJWppkix9frkF05f/vYxd3d3PAM1he5QgxOZzl61AOrpcI7SUaJ8hflr+QNR6w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR06MB6088 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org HDC2010/2080 driver and sysfs documentation for its heater element. Signed-off-by: Eugene Zaikonnikov diff -uprN -X linux-5.3.8/Documentation/dontdiff linux-5.3.8/Documentation/= ABI/testing/sysfs-bus-iio-humidity-hdc2010 linux-5.3.8_hdc2010/Documentatio= n/ABI/testing/sysfs-bus-iio-humidity-hdc2010 --- linux-5.3.8/Documentation/ABI/testing/sysfs-bus-iio-humidity-hdc2010 19= 70-01-01 01:00:00.000000000 +0100 +++ linux-5.3.8_hdc2010/Documentation/ABI/testing/sysfs-bus-iio-humidity-hd= c2010 2019-12-02 11:09:25.803326999 +0100 @@ -0,0 +1,9 @@ +What: /sys/bus/iio/devices/iio:deviceX/out_current_heater_raw +What: /sys/bus/iio/devices/iio:deviceX/out_current_heater_raw_available +KernelVersion: 5.3.8 +Contact: linux-iio@vger.kernel.org +Description: + Controls the heater device within the humidity sensor to get + rid of excess condensation. + + Valid control values are 0 =3D OFF, and 1 =3D ON. diff -uprN -X linux-5.3.8/Documentation/dontdiff linux-5.3.8/drivers/iio/hu= midity/hdc2010.c linux-5.3.8_hdc2010/drivers/iio/humidity/hdc2010.c --- linux-5.3.8/drivers/iio/humidity/hdc2010.c 1970-01-01 01:00:00.00000000= 0 +0100 +++ linux-5.3.8_hdc2010/drivers/iio/humidity/hdc2010.c 2020-04-24 18:04:48.= 699251583 +0200 @@ -0,0 +1,333 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * hdc2010.c - Support for the TI HDC2010 and HDC2080 + * temperature + relative humidity sensors + * + * Copyright (C) 2020 Norphonic AS + * Author: Eugene Zaikonnikov + * + * Datasheets: + * http://www.ti.com/product/HDC2010/datasheet + * http://www.ti.com/product/HDC2080/datasheet + */ + +#include +#include +#include + +#include +#include + +#define HDC2010_REG_TEMP_LOW 0x00 +#define HDC2010_REG_TEMP_HIGH 0x01 +#define HDC2010_REG_HUMIDITY_LOW 0x02 +#define HDC2010_REG_HUMIDITY_HIGH 0x03 +#define HDC2010_REG_INTERRUPT_DRDY 0x04 +#define HDC2010_REG_TEMP_MAX 0x05 +#define HDC2010_REG_HUMIDITY_MAX 0x06 +#define HDC2010_REG_INTERRUPT_EN 0x07 +#define HDC2010_REG_TEMP_OFFSET_ADJ 0x08 +#define HDC2010_REG_HUMIDITY_OFFSET_ADJ 0x09 +#define HDC2010_REG_TEMP_THR_L 0x0a +#define HDC2010_REG_TEMP_THR_H 0x0b +#define HDC2010_REG_RH_THR_L 0x0c +#define HDC2010_REG_RH_THR_H 0x0d +#define HDC2010_REG_RESET_DRDY_INT_CONF 0x0e +#define HDC2010_REG_MEASUREMENT_CONF 0x0f + +#define HDC2010_MEAS_CONF GENMASK(2, 1) +#define HDC2010_MEAS_TRIG BIT(0) +#define HDC2010_HEATER_EN BIT(3) +#define HDC2010_AMM GENMASK(6, 4) + +struct hdc2010_data { + struct i2c_client *client; + struct mutex lock; + u8 measurement_config; + u8 interrupt_config; + u8 drdy_config; +}; + +enum hdc2010_addr_groups { + HDC2010_GROUP_TEMP =3D 0, + HDC2010_GROUP_HUMIDITY +}; + +struct hdc2010_reg_record { + unsigned long primary; + unsigned long peak; +}; + +static const struct hdc2010_reg_record hdc2010_reg_translation[] =3D { + [HDC2010_GROUP_TEMP] =3D { + .primary =3D HDC2010_REG_TEMP_LOW, + .peak =3D HDC2010_REG_TEMP_MAX, + }, + [HDC2010_GROUP_HUMIDITY] =3D { + .primary =3D HDC2010_REG_HUMIDITY_LOW, + .peak =3D HDC2010_REG_HUMIDITY_MAX, + }, +}; + +static IIO_CONST_ATTR(out_current_heater_raw_available, + "0 1"); + +static struct attribute *hdc2010_attributes[] =3D { + &iio_const_attr_out_current_heater_raw_available.dev_attr.attr, + NULL +}; + +static const struct attribute_group hdc2010_attribute_group =3D { + .attrs =3D hdc2010_attributes, +}; + +static const struct iio_chan_spec hdc2010_channels[] =3D { + { + .type =3D IIO_TEMP, + .address =3D HDC2010_GROUP_TEMP, + .info_mask_separate =3D BIT(IIO_CHAN_INFO_RAW) | + BIT(IIO_CHAN_INFO_PEAK) | + BIT(IIO_CHAN_INFO_OFFSET) | + BIT(IIO_CHAN_INFO_SCALE), + }, + { + .type =3D IIO_HUMIDITYRELATIVE, + .address =3D HDC2010_GROUP_HUMIDITY, + .info_mask_separate =3D BIT(IIO_CHAN_INFO_RAW) | + BIT(IIO_CHAN_INFO_PEAK) | + BIT(IIO_CHAN_INFO_SCALE), + }, + { + .type =3D IIO_CURRENT, + .info_mask_separate =3D BIT(IIO_CHAN_INFO_RAW), + .extend_name =3D "heater", + .output =3D 1, + }, +}; + +static int hdc2010_update_drdy_config(struct hdc2010_data *data, + char mask, char val) +{ + char tmp =3D (~mask & data->drdy_config) | val; + int ret; + + ret =3D i2c_smbus_write_byte_data(data->client, + HDC2010_REG_RESET_DRDY_INT_CONF, tmp); + if (!ret) + data->drdy_config =3D tmp; + + return ret; +} + +static int hdc2010_get_prim_measurement_word(struct hdc2010_data *data, + struct iio_chan_spec const *chan) +{ + struct i2c_client *client =3D data->client; + s32 ret; + + ret =3D i2c_smbus_read_word_data(client, + hdc2010_reg_translation[chan->address].primary); + + if (ret < 0) + dev_err(&client->dev, "Could not read sensor data\n"); + + return ret; +} + +static int hdc2010_get_peak_measurement_byte(struct hdc2010_data *data, + struct iio_chan_spec const *chan) +{ + struct i2c_client *client =3D data->client; + s32 ret; + + ret =3D i2c_smbus_read_byte_data(client, + hdc2010_reg_translation[chan->address].peak); + + if (ret < 0) + dev_err(&client->dev, "Could not read sensor data\n"); + + return ret; +} + +static int hdc2010_get_heater_status(struct hdc2010_data *data) +{ + return !!(data->drdy_config & HDC2010_HEATER_EN); +} + +static int hdc2010_read_raw(struct iio_dev *indio_dev, + struct iio_chan_spec const *chan, int *val, + int *val2, long mask) +{ + struct hdc2010_data *data =3D iio_priv(indio_dev); + + switch (mask) { + case IIO_CHAN_INFO_RAW: { + int ret; + + if (chan->type =3D=3D IIO_CURRENT) { + *val =3D hdc2010_get_heater_status(data); + return IIO_VAL_INT; + } + ret =3D iio_device_claim_direct_mode(indio_dev); + if (ret) + return ret; + mutex_lock(&data->lock); + ret =3D hdc2010_get_prim_measurement_word(data, chan); + mutex_unlock(&data->lock); + iio_device_release_direct_mode(indio_dev); + if (ret < 0) + return ret; + *val =3D ret; + return IIO_VAL_INT; + } + case IIO_CHAN_INFO_PEAK: { + int ret; + + ret =3D iio_device_claim_direct_mode(indio_dev); + if (ret) + return ret; + mutex_lock(&data->lock); + ret =3D hdc2010_get_peak_measurement_byte(data, chan); + mutex_unlock(&data->lock); + iio_device_release_direct_mode(indio_dev); + if (ret < 0) + return ret; + /* Scaling up the value so we can use same offset as RAW */ + *val =3D ret * 256; + return IIO_VAL_INT; + } + case IIO_CHAN_INFO_SCALE: + *val2 =3D 65536; + if (chan->type =3D=3D IIO_TEMP) + *val =3D 165000; + else + *val =3D 100000; + return IIO_VAL_FRACTIONAL; + case IIO_CHAN_INFO_OFFSET: + *val =3D -15887; + *val2 =3D 515151; + return IIO_VAL_INT_PLUS_MICRO; + default: + return -EINVAL; + } +} + +static int hdc2010_write_raw(struct iio_dev *indio_dev, + struct iio_chan_spec const *chan, + int val, int val2, long mask) +{ + struct hdc2010_data *data =3D iio_priv(indio_dev); + int new, ret; + + switch (mask) { + case IIO_CHAN_INFO_RAW: + if (chan->type !=3D IIO_CURRENT || val2 !=3D 0) + return -EINVAL; + + switch (val) { + case 1: + new =3D HDC2010_HEATER_EN; + break; + case 0: + new =3D 0; + break; + default: + return -EINVAL; + } + + mutex_lock(&data->lock); + ret =3D hdc2010_update_drdy_config(data, HDC2010_HEATER_EN, new); + mutex_unlock(&data->lock); + return ret; + default: + return -EINVAL; + } +} + +static const struct iio_info hdc2010_info =3D { + .read_raw =3D hdc2010_read_raw, + .write_raw =3D hdc2010_write_raw, + .attrs =3D &hdc2010_attribute_group, +}; + +static int hdc2010_probe(struct i2c_client *client, + const struct i2c_device_id *id) +{ + struct iio_dev *indio_dev; + struct hdc2010_data *data; + u8 tmp; + int ret; + + if (!i2c_check_functionality(client->adapter, I2C_FUNC_SMBUS_WORD_DATA | + I2C_FUNC_SMBUS_BYTE | I2C_FUNC_I2C)) + return -EOPNOTSUPP; + + indio_dev =3D devm_iio_device_alloc(&client->dev, sizeof(*data)); + if (!indio_dev) + return -ENOMEM; + + data =3D iio_priv(indio_dev); + i2c_set_clientdata(client, indio_dev); + data->client =3D client; + mutex_init(&data->lock); + + indio_dev->dev.parent =3D &client->dev; + /* + * As DEVICE ID register does not differentiate between + * HDC2010 and HDC2080, we have the name hardcoded + */ + indio_dev->name =3D "hdc2010"; + indio_dev->modes =3D INDIO_DIRECT_MODE; + indio_dev->info =3D &hdc2010_info; + + indio_dev->channels =3D hdc2010_channels; + indio_dev->num_channels =3D ARRAY_SIZE(hdc2010_channels); + + /* Enable Automatic Measurement Mode at 5Hz */ + ret =3D hdc2010_update_drdy_config(data, HDC2010_AMM, HDC2010_AMM); + if (ret) + return ret; + + /* + * We enable both temp and humidity measurement. + * However the measurement won't start even in AMM until triggered. + */ + tmp =3D (u8)(data->measurement_config & ~HDC2010_MEAS_CONF) | + HDC2010_MEAS_TRIG; + + ret =3D i2c_smbus_write_byte_data(client, + HDC2010_REG_MEASUREMENT_CONF, tmp); + if (ret) + return ret; + data->measurement_config =3D tmp; + + return devm_iio_device_register(&client->dev, indio_dev); +} + +static const struct i2c_device_id hdc2010_id[] =3D { + { "hdc2010" }, + { "hdc2080" }, + { } +}; +MODULE_DEVICE_TABLE(i2c, hdc2010_id); + +static const struct of_device_id hdc2010_dt_ids[] =3D { + { .compatible =3D "ti,hdc2010" }, + { .compatible =3D "ti,hdc2080" }, + { } +}; +MODULE_DEVICE_TABLE(of, hdc2010_dt_ids); + +static struct i2c_driver hdc2010_driver =3D { + .driver =3D { + .name =3D "hdc2010", + .of_match_table =3D hdc2010_dt_ids, + }, + .probe =3D hdc2010_probe, + .id_table =3D hdc2010_id, +}; +module_i2c_driver(hdc2010_driver); + +MODULE_AUTHOR("Eugene Zaikonnikov "); +MODULE_DESCRIPTION("TI HDC2010 humidity and temperature sensor driver"); +MODULE_LICENSE("GPL"); diff -uprN -X linux-5.3.8/Documentation/dontdiff linux-5.3.8/drivers/iio/hu= midity/Kconfig linux-5.3.8_hdc2010/drivers/iio/humidity/Kconfig --- linux-5.3.8/drivers/iio/humidity/Kconfig 2019-10-29 09:22:48.000000000 = +0100 +++ linux-5.3.8_hdc2010/drivers/iio/humidity/Kconfig 2019-11-28 14:31:27.79= 4242693 +0100 @@ -38,6 +38,16 @@ config HDC100X To compile this driver as a module, choose M here: the module will be called hdc100x. +config HDC2010 + tristate "TI HDC2010 relative humidity and temperature sensor" + depends on I2C + help + Say yes here to build support for the Texas Instruments + HDC2010 and HDC2080 relative humidity and temperature sensors. + + To compile this driver as a module, choose M here: the module + will be called hdc2010. + config HID_SENSOR_HUMIDITY tristate "HID Environmental humidity sensor" depends on HID_SENSOR_HUB diff -uprN -X linux-5.3.8/Documentation/dontdiff linux-5.3.8/drivers/iio/hu= midity/Makefile linux-5.3.8_hdc2010/drivers/iio/humidity/Makefile --- linux-5.3.8/drivers/iio/humidity/Makefile 2019-10-29 09:22:48.000000000= +0100 +++ linux-5.3.8_hdc2010/drivers/iio/humidity/Makefile 2019-11-28 14:30:40.6= 09892061 +0100 @@ -6,6 +6,7 @@ obj-$(CONFIG_AM2315) +=3D am2315.o obj-$(CONFIG_DHT11) +=3D dht11.o obj-$(CONFIG_HDC100X) +=3D hdc100x.o +obj-$(CONFIG_HDC2010) +=3D hdc2010.o obj-$(CONFIG_HID_SENSOR_HUMIDITY) +=3D hid-sensor-humidity.o hts221-y :=3D hts221_core.o \