Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1374ybv; Wed, 19 Feb 2020 15:09:08 -0800 (PST) X-Google-Smtp-Source: APXvYqwmmTpqsYznIHKCka9W4m1Tw64P/OthvsgOSsAE8gEcGqmzfm7yV1cxGsEMIc5Q3zOndWWw X-Received: by 2002:aca:f1c6:: with SMTP id p189mr34518oih.159.1582153748395; Wed, 19 Feb 2020 15:09:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582153748; cv=none; d=google.com; s=arc-20160816; b=MXzc7xmGxZqj9Jwydmim79vQSXxXMsuBV2mPELYFLVLmVutE79ociIPfdrbh28VOn7 2DMwbw4G8NZgc9fewkpO7Z/bFUsM+oZ2PP9KeiHLKNFtS3yQ0Xcvemq3OqYuzlh3kJou +hD8LdU6b9PUljXaobSvpaHqw81WYDWEBLRsKdMSo4dKQiAtgD8oz2hzGpbHLSy44QS3 wbzNQq4quDJ9b+GtWX52f8lip0TWPcF3FkSE6gGRA03/yfOtRHMoXUIeG9/ENravdr1s TcOOlS7GOovmxqjuZ0bEJnFqAVeBopWh0ux7KcGUccouT3JnnkOSGQOMpD1/V8LU2aQN zigQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=B5o43CHmKfB5WT/Bs5/VID/7xQx6JihjpasEkUB+yOs=; b=qG+CGfo9WjDTOxgahH1hPoU2i+KvKLTT5oKH3qXk3We24HXJznlHcupELaokdvGonE RglebET+sRdzpWQXj3Tz3Ujvr6kfQOS+arsr93ENZes6+PvE/07t5Xz4rOhCY18BWBsZ cGCDvE8sCI07w0OLeoox9xkFSKg7GPCLSWNa6R+CSKrPgT1P+k9Kf224zac3XV1b1JnU 1Sn5y+IH2FdYJ6S3m+Cw3/vsYILpxCjkAg+XXnKwDUwbQC8Kc9Ie3rBzTpSUMshzOeIM hH2QQMMo0PE/61qPfJS+mXc+459wWdwab9t8tEBeNTHdIGNK1zTiaDZx7IFw+RBjks0r yq9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=LVlwwu2r; 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 g26si622298otk.324.2020.02.19.15.08.50; Wed, 19 Feb 2020 15:09:08 -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=@gmail.com header.s=20161025 header.b=LVlwwu2r; 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 S1726783AbgBSXH3 (ORCPT + 99 others); Wed, 19 Feb 2020 18:07:29 -0500 Received: from mail-pj1-f66.google.com ([209.85.216.66]:33019 "EHLO mail-pj1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726613AbgBSXH3 (ORCPT ); Wed, 19 Feb 2020 18:07:29 -0500 Received: by mail-pj1-f66.google.com with SMTP id m7so532902pjs.0; Wed, 19 Feb 2020 15:07:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=B5o43CHmKfB5WT/Bs5/VID/7xQx6JihjpasEkUB+yOs=; b=LVlwwu2rkRP+U/gcnGAWlcNcfA+6JKORjE8/L38OpwdFiGelOmo6w17KS+7ibVNib2 rEyBcUnyu5fthGLWHrZsPjtnO1icAuRgSCTOSGdE/d0RWlwE/4WiCfTL93rXLjvtmoLs RkJ6avsnpFwhyQG9SW2ds6ZwKele4dS+ss1AtZGSc5ODWtSgW7hFCbeRpSIDFMJpX7Nn sMRRwSwOMgsqE/4sR4XZQUol5oo/XDaEdeJCSxKPGyubYoYUyh9dXdRWFddflhaIz7tI 0tEyDjJjpUHCvJMLUlFJdz+NlJTmrYShgBw6Rb/6H8h0YV8WEucnjczz+r0TgP7mAYFQ aZdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=B5o43CHmKfB5WT/Bs5/VID/7xQx6JihjpasEkUB+yOs=; b=b9xQtNxuer3jjPS33X3Vy85/x8iZfzZr8Q7tGevx40zr4/Pz08iat7ZRSFHdQhKmXE i2R4S3Xwx1X2vtklj4zeRqehlPWLD6MoBbhPVH43q1+83J1emduC2AL0HX47uY2H/0mY waMeRt0aZ1rW3fmGO1xCa/1wS0Ry7fkk1oa9PSlVAvUNRACvazp0cQA0YCjR3fAoUtV1 +i89V4L3lR5mA9gkbCv4YZK0YT6Ugcwj7wTtzYjRpqfFTRHrmiAdO4SM1Ta7wqlUkP6B 6cfX/tF+I92Bfc6WHVSbyATcnGa1vwTFrKoOsIMUJMLtCI26CSPJO5xXKe2hVIxHF3vm dPuA== X-Gm-Message-State: APjAAAUJcBo/Yt6w7CqInmAR8CnYFZCCXa+ccCfPjwqSjYD03VjIeNR6 dAY0yNzWEKEcoSyoCHrvG/vvnaOE X-Received: by 2002:a17:902:9a8f:: with SMTP id w15mr29521500plp.30.1582153648341; Wed, 19 Feb 2020 15:07:28 -0800 (PST) Received: from localhost ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id 76sm679118pfx.97.2020.02.19.15.07.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 19 Feb 2020 15:07:27 -0800 (PST) Date: Wed, 19 Feb 2020 15:07:27 -0800 From: Guenter Roeck To: Henry Shen Cc: robh+dt@kernel.org, mark.rutland@arm.com, guillaume.ligneul@gmail.com, jdelvare@suse.com, trivial@kernel.org, venture@google.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org Subject: Re: [PATCH v2 2/2] hwmon: (lm73) Add support for of_match_table Message-ID: <20200219230726.GA9285@roeck-us.net> References: <20200212030615.28537-1-henry.shen@alliedtelesis.co.nz> <20200212030615.28537-3-henry.shen@alliedtelesis.co.nz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200212030615.28537-3-henry.shen@alliedtelesis.co.nz> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 12, 2020 at 04:06:15PM +1300, Henry Shen wrote: > Add the of_match_table. > > Signed-off-by: Henry Shen Applied to hwmon-next. Thanks, Guenter > --- > Change in v2: > - add missing sign-off > > drivers/hwmon/lm73.c | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/drivers/hwmon/lm73.c b/drivers/hwmon/lm73.c > index 1eeb9d7de2a0..733c48bf6c98 100644 > --- a/drivers/hwmon/lm73.c > +++ b/drivers/hwmon/lm73.c > @@ -262,10 +262,20 @@ static int lm73_detect(struct i2c_client *new_client, > return 0; > } > > +static const struct of_device_id lm73_of_match[] = { > + { > + .compatible = "ti,lm73", > + }, > + { }, > +}; > + > +MODULE_DEVICE_TABLE(of, lm73_of_match); > + > static struct i2c_driver lm73_driver = { > .class = I2C_CLASS_HWMON, > .driver = { > .name = "lm73", > + .of_match_table = lm73_of_match, > }, > .probe = lm73_probe, > .id_table = lm73_ids,