From patchwork Thu Dec 27 15:13:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Kemnade X-Patchwork-Id: 10743817 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BE1A714E2 for ; Thu, 27 Dec 2018 15:14:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AA2E72899F for ; Thu, 27 Dec 2018 15:14:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9BAAE289F5; Thu, 27 Dec 2018 15:14:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 44F5A2899F for ; Thu, 27 Dec 2018 15:14:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731152AbeL0POW (ORCPT ); Thu, 27 Dec 2018 10:14:22 -0500 Received: from mail.andi.de1.cc ([85.214.239.24]:60230 "EHLO h2641619.stratoserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731151AbeL0POW (ORCPT ); Thu, 27 Dec 2018 10:14:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20180802; h=References:In-Reply-To:Message-Id:Date:Subject: Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Z5QYLHj4C/hWCkjjUWQwky4GByXTl43sM+tyOxveHE8=; b=Q7pDsdW5XXfsOPpin04wUNCKz PMKpTSck9+wWgHa0bwsy31/n6qlyrI/dUQKa4OGbchvZgAi8Jk0xHa2DzsBa8ROobUXMNP3bsMnUu XmToMpdLA4SVZkq9qF7HtJLuY2l+QXbtyTxFmpy/imiN+Jsta3amUgSV4u0hPg+5v+QK0=; Received: from p200300ccfbcbef001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:cc:fbcb:ef00:1a3d:a2ff:febf:d33a] helo=aktux) by h2641619.stratoserver.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gcXMC-0003PO-4G; Thu, 27 Dec 2018 16:13:56 +0100 Received: from andi by aktux with local (Exim 4.89) (envelope-from ) id 1gcXMC-0007kr-5j; Thu, 27 Dec 2018 16:13:56 +0100 From: Andreas Kemnade To: jdelvare@suse.com, linux@roeck-us.net, robh+dt@kernel.org, mark.rutland@arm.com, linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andreas Kemnade Subject: [PATCH 1/2] hwmon: (hih6130) add dtb compatibility tables Date: Thu, 27 Dec 2018 16:13:48 +0100 Message-Id: <20181227151349.29753-2-andreas@kemnade.info> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20181227151349.29753-1-andreas@kemnade.info> References: <20181227151349.29753-1-andreas@kemnade.info> Sender: linux-hwmon-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This allows the hih6130 to be used in devicetree files and auto-probed that way. Signed-off-by: Andreas Kemnade --- drivers/hwmon/hih6130.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/hwmon/hih6130.c b/drivers/hwmon/hih6130.c index 0ae1ee1dbf76..de1b50ddc740 100644 --- a/drivers/hwmon/hih6130.c +++ b/drivers/hwmon/hih6130.c @@ -254,8 +254,17 @@ static const struct i2c_device_id hih6130_id[] = { }; MODULE_DEVICE_TABLE(i2c, hih6130_id); +static const struct of_device_id hih6130_of_match[] = { + { .compatible = "honeywell,hih6130", }, + { } +}; +MODULE_DEVICE_TABLE(of, hih6130_of_match); + static struct i2c_driver hih6130_driver = { - .driver.name = "hih6130", + .driver = { + .name = "hih6130", + .of_match_table = of_match_ptr(hih6130_of_match), + }, .probe = hih6130_probe, .id_table = hih6130_id, }; From patchwork Thu Dec 27 15:13:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Kemnade X-Patchwork-Id: 10743815 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 854D013B5 for ; Thu, 27 Dec 2018 15:14:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7210D2882C for ; Thu, 27 Dec 2018 15:14:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 664B628971; Thu, 27 Dec 2018 15:14:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1BEE92882C for ; Thu, 27 Dec 2018 15:14:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731139AbeL0POL (ORCPT ); Thu, 27 Dec 2018 10:14:11 -0500 Received: from mail.andi.de1.cc ([85.214.239.24]:60224 "EHLO h2641619.stratoserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727335AbeL0POK (ORCPT ); Thu, 27 Dec 2018 10:14:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20180802; h=References:In-Reply-To:Message-Id:Date:Subject: Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=aa9a5kkWLzAfKwYkuodPGMPj7HIEaEqbQu15t2kgRwo=; b=K42SPqwx0aA7Kgzrbype0UOXB 3xksoWJqKDmsXB2rNPH3oSlCum3bqlN2KouvcSTLGg7ChAAr7DA0wibJh/aVV9IBOEMPzQaSMGO/H o+E9uAj8hL39AuNwatw3sTyLVs4R6cpjYS5VV8zFM6xACftZWm7iZw6nm39OendHkKrvw=; Received: from p200300ccfbcbef001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:cc:fbcb:ef00:1a3d:a2ff:febf:d33a] helo=aktux) by h2641619.stratoserver.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gcXMD-0003PR-1e; Thu, 27 Dec 2018 16:13:57 +0100 Received: from andi by aktux with local (Exim 4.89) (envelope-from ) id 1gcXMD-0007ku-1W; Thu, 27 Dec 2018 16:13:57 +0100 From: Andreas Kemnade To: jdelvare@suse.com, linux@roeck-us.net, robh+dt@kernel.org, mark.rutland@arm.com, linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andreas Kemnade Subject: [PATCH 2/2] devicetree: hwmon: Add bindings documentation for HIH6130 Date: Thu, 27 Dec 2018 16:13:49 +0100 Message-Id: <20181227151349.29753-3-andreas@kemnade.info> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20181227151349.29753-1-andreas@kemnade.info> References: <20181227151349.29753-1-andreas@kemnade.info> Sender: linux-hwmon-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add bindings documentation for HIH6130 driver. Signed-off-by: Andreas Kemnade Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/hwmon/hih6130.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/hih6130.txt diff --git a/Documentation/devicetree/bindings/hwmon/hih6130.txt b/Documentation/devicetree/bindings/hwmon/hih6130.txt new file mode 100644 index 000000000000..2c43837af4c2 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/hih6130.txt @@ -0,0 +1,12 @@ +Honeywell Humidicon HIH-6130 humidity/temperature sensor +-------------------------------------------------------- + +Requires node properties: +- compatible : "honeywell,hi6130" +- reg : the I2C address of the device. This is 0x27. + +Example: + hih6130@27 { + compatible = "honeywell,hih6130"; + reg = <0x27>; + };