Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp96734ybv; Tue, 4 Feb 2020 17:09:30 -0800 (PST) X-Google-Smtp-Source: APXvYqwSjtWmHy3j7H77dPSqMvSm7971hE33ov3HLvnMpXtkmgsUznuOFtE3EkxvS0zqHe8SI+7J X-Received: by 2002:a9d:4c81:: with SMTP id m1mr24098904otf.5.1580864969979; Tue, 04 Feb 2020 17:09:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580864969; cv=none; d=google.com; s=arc-20160816; b=JgfxQnX50exbstnh7r7GKYff/CIghtXUaEgz9Hpk3XakAoEN+g3fLjlVYi5fx11h8h 4wSNwoaFhS9sAReNKufl+/y9MsBDr7N3fhBZRqzZitKQrhaXnayfgr19AvH6ZEBRbNFL /9Ku5y4oOYCILG/QDGMTmREa9iFYNUN38HNb96WVejUxlhGRkuaOI6IjXLjV9UdE1Bby FrWrIaUYbU7GaXt612PbFn5SceMAhQhBvgjAULnHR4egpRh952/1fCiUSNGSRmW4TD+I f/tN06zBbTBPb884CVb61u6UVt/hY1pVgC9gTzYaao1lUpM1CheL22u6GiCqmLcjZDZV e4tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=kqjbAJec6thyniVcHUdJt5Dd6qFficTHzwWZgqeiHEI=; b=GiIQjqUHWQNaMx6KuqPrQvDhx3vkkI+Ih8h4BUedg8z/1UFipuv9amufoOopXD8YVW d3Xdz6BJk2SbJqLQO46H9kuHN8S3VPTMBFmlHTg6dLmXi4FNHi+WnZr3UORR/VM/38CZ 8L1HrzfL1ZztM0X3KFA8ToMLtUcc5QSQMI79YAZIYEIlpZS7ZgfywmgrF8D5ywXB8/nn hd2ULZH1XrhwjPn0U7avgMVW4pE3yWD12f74i3HpMdnij+maoc42Pv6CqrDSaWGKofqH G8MVnXP/4RjULDyeruW341cZ3kYfsN+w95z8Kpw85qRa5QoIotSxcn3h1kCi6Dx/UP8r fSQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=v8iIuiyu; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alliedtelesis.co.nz Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p12si12695597otk.173.2020.02.04.17.09.14; Tue, 04 Feb 2020 17:09:29 -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=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=v8iIuiyu; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alliedtelesis.co.nz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727794AbgBEBHU (ORCPT + 99 others); Tue, 4 Feb 2020 20:07:20 -0500 Received: from gate2.alliedtelesis.co.nz ([202.36.163.20]:56569 "EHLO gate2.alliedtelesis.co.nz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727689AbgBEBHU (ORCPT ); Tue, 4 Feb 2020 20:07:20 -0500 Received: from mmarshal3.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id 0D401891AB; Wed, 5 Feb 2020 14:07:19 +1300 (NZDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1580864839; bh=kqjbAJec6thyniVcHUdJt5Dd6qFficTHzwWZgqeiHEI=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=v8iIuiyutm8AUdLhjZJxdL/TApgnGihkZPXzd1N3pKq/Nln4ZoWOU/zoprXPZQP3P Uc1+n/o+v9pXkHMKby2aw2UlmeSVzcvwsdKaHcAFv6L1yHaefplMSkosmeijKBB+mr CtCmWVOYXBFHOFC01ZDGc+M/nwQACc2eHj0AdbHL9BBodbWbK32vj49qCcXgi3ZxxS zE03HnFjFUm9gv6x8hBafDLbult0IOi81OewYnGUF3mKuHAtjQvjk/wJ4RBkotMtzo 3L8LNw29pwB6w6bSBuAfvlfJmp3Wgbi5VQVhIKoErxqaiMezEH1Wk/FDgimv5urrsI qwT50yRNOqwxw== Received: from smtp (Not Verified[10.32.16.33]) by mmarshal3.atlnz.lc with Trustwave SEG (v7,5,8,10121) id ; Wed, 05 Feb 2020 14:07:19 +1300 Received: from henrys-dl.ws.atlnz.lc (henrys-dl.ws.atlnz.lc [10.33.23.26]) by smtp (Postfix) with ESMTP id 504D713EEDE; Wed, 5 Feb 2020 14:07:18 +1300 (NZDT) Received: by henrys-dl.ws.atlnz.lc (Postfix, from userid 1052) id C17FA4E9850; Wed, 5 Feb 2020 14:07:13 +1300 (NZDT) From: Henry Shen To: guillaume.ligneul@gmail.com Cc: jdelvare@suse.com, linux-kernel@vger.kernel.org, Henry Shen Subject: [PATCH] hwmon: (lm73) Add support for of_match_table Date: Wed, 5 Feb 2020 14:06:57 +1300 Message-Id: <20200205010657.29483-2-henry.shen@alliedtelesis.co.nz> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200205010657.29483-1-henry.shen@alliedtelesis.co.nz> References: <20200205010657.29483-1-henry.shen@alliedtelesis.co.nz> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable x-atlnz-ls: pat Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the of_match_table. --- 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_clien= t, return 0; } =20 +static const struct of_device_id lm73_of_match[] =3D { + { + .compatible =3D "ti,lm73", + }, + { }, +}; + +MODULE_DEVICE_TABLE(of, lm73_of_match); + static struct i2c_driver lm73_driver =3D { .class =3D I2C_CLASS_HWMON, .driver =3D { .name =3D "lm73", + .of_match_table =3D lm73_of_match, }, .probe =3D lm73_probe, .id_table =3D lm73_ids, --=20 2.25.0