Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7315581imu; Thu, 27 Dec 2018 17:35:33 -0800 (PST) X-Google-Smtp-Source: ALg8bN709pahUmlR7OmdwWVJgqEvvHoJyfyVRsRA5PPmzQyK/qHWc2TuTDa2k8ROOOjCrevvFOhh X-Received: by 2002:a63:6150:: with SMTP id v77mr24061481pgb.266.1545960932937; Thu, 27 Dec 2018 17:35:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545960932; cv=none; d=google.com; s=arc-20160816; b=IrqVi37EMDk7SqG3/YlLc7sgPalOqJkV2ww6YVsEPijBvrYWe+pIBioqVrDvGrtEz8 u76WQRYkfKDD3tVQLQdgu6xxpFhICMKVurqj5nKxKIFmNuiEOdCiTcU4LCA0tC83PYMx 2CSOUK+LdODSLNzpg4wWNmEnyEebhvcVLZhWgNsxBXt2Vc1ChqZJPeLcpaVec0cZVNH0 BQJ7KtsX5jLA+XzuZRR/gYHQShCKT/GAV7mCOVdwx+cwWnFobnLX2Hw8ZKyP1Z2p8ozT 8McqEFOazQ2AsHr+mcFX8k4tIOk6aawIGAUkmCMYaxzRX/mwAafQe+Z17+Wtsz3dG5tX a1bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=Z5QYLHj4C/hWCkjjUWQwky4GByXTl43sM+tyOxveHE8=; b=yrTFvQBLWpFsk0hasEHPD5cYldRINFBoYIZeshdNnsBCQt+Dw3mAoTkpm5kbMCNBUF 9+hOgOBxWHMMcFToyz4zicoEFps4QEgca9Gzhmv69C+i5nEktz2jYEhCboaFEZWPZelU bj4dyJp+CrP1VVePEIw+VVUO1krMOVT1pB8PfC3H+Lk9Pd42txgfnuMABnsUIpIU53tL zvU0Jl01uH+SzaaZUP0v0QYVArL9NIwb+WiKLqSNCsPUhkkB8YpXhfmTg77iY/ykxPy2 oeCMSz2oY8Jja09jAJ9vDKpxqHpO/PGx5h0OM3HaNEiDJ2XRqgb1exy/rlBVUVNeG5kc azFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=Q7pDsdW5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c8si22459257pgc.65.2018.12.27.17.35.17; Thu, 27 Dec 2018 17:35:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=Q7pDsdW5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731163AbeL0POY (ORCPT + 99 others); Thu, 27 Dec 2018 10:14:24 -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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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, }; -- 2.11.0