Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5579101ybv; Tue, 11 Feb 2020 19:06:55 -0800 (PST) X-Google-Smtp-Source: APXvYqwOU13J321YA1+3havc07ICYnQRCVw8d3Lz+zo4YjHh7a/8wWgeEA+SDAmAIBIVA0oP995O X-Received: by 2002:a05:6830:15c2:: with SMTP id j2mr7232403otr.351.1581476815116; Tue, 11 Feb 2020 19:06:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581476815; cv=none; d=google.com; s=arc-20160816; b=MVQlGAmf330Fco+tGsiZZd6YeeYIhqFC4ZLHM/J5MPeWXMymwt7vu3m66xwfF4ffr/ k2FdGkzuGKkGDTJeFwd5WYGFL9xPN9ajKm//UjX2fk0j5hj7DEXdi4y8t0RJpHBYCaNe 5LzP10kX9/qPDEHJENQksj+XOG1yl2LERzhoE/+7Hxz1/WP9YnOoL3qUGKnKwg4dM5tf MfEDq25muCOINDIaRj+zO12jGLcevbmg+aVA9k/gUPxddPMES4pqqW1ccmpfWzKQbHjP g3SMe8C0W8WTTlpUzxW9uYd3kubMj9eoD6YhE33qdUJdeLPVqSRYFhrhRJCgduVYCvg/ +blg== 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=BS4SIJJXkPfD3uRSfaxuBqFgO6t+gHHcevTuB9owsIE=; b=YI/kovyO59QAjee61ZgALf5ZM/h68klZ6acRHweQBHVBc/gDl2S89ywAk3SPP0p+hU G7JrXQSO4mQWZKpeoMvMU3l1muLOhgg6EuYR1wSwQz1YrQONHRpxZ7opjr34JEZX0Q4P DIcYmz8vwuvnaDf+eraBVCTfxwn41+Zhdrz0qwPEsVZ1/CwuGL/7K4GN+3+Al2SzcgWM BkdaqkUaW9KOMQWaNGOUIou3f5g0ln57qhfU41jCyiK2OGTuVntPGCHy2PEUD8CCdEIU 4g86PiHHKI3pCKBx+uv16B660cN0ueSrdBfm7LjIMGp4tM6o1VA1xIOg5imMkbXw49pg 4z6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=z+tmd1Ba; 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 q6si3482841otg.248.2020.02.11.19.06.43; Tue, 11 Feb 2020 19:06:55 -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=z+tmd1Ba; 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 S1727936AbgBLDGa (ORCPT + 99 others); Tue, 11 Feb 2020 22:06:30 -0500 Received: from gate2.alliedtelesis.co.nz ([202.36.163.20]:39401 "EHLO gate2.alliedtelesis.co.nz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727710AbgBLDG2 (ORCPT ); Tue, 11 Feb 2020 22:06:28 -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 0E90D891AA; Wed, 12 Feb 2020 16:06:26 +1300 (NZDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1581476786; bh=BS4SIJJXkPfD3uRSfaxuBqFgO6t+gHHcevTuB9owsIE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=z+tmd1BaPSpks5VQvfdyS3YdeIQddbiXVMpVyvByPVuKU9Tpp8k/LZpCuZrAN6qYN S4azscTOe1qdxbho+BJOgQVkZVObciwjZYg8O7YACab+95l8iuVCjbmEIXwXAM5ZPZ yO6qSvuyYv6pPgkyDmnQ0nLB4iOtAfLWcoxOgCGlZJqZy5Oo9vDq7y870AvA+gLXAr 2ILKQ6/kubB4ajpkiKSyTx3hkjP677CHe4c/NCyY62YHArwAdwf+i3tF4np9byt/n/ X8uH7Nvljg8pzFS3kEIuRTHx53qtHuKbc+Acghv6JEnBpi2nXYuwaWVpYqkPgRFrhg Rp1O66kYOZbDw== Received: from smtp (Not Verified[10.32.16.33]) by mmarshal3.atlnz.lc with Trustwave SEG (v7,5,8,10121) id ; Wed, 12 Feb 2020 16:06:25 +1300 Received: from henrys-dl.ws.atlnz.lc (henrys-dl.ws.atlnz.lc [10.33.23.26]) by smtp (Postfix) with ESMTP id 9BF0413EED4; Wed, 12 Feb 2020 16:06:25 +1300 (NZDT) Received: by henrys-dl.ws.atlnz.lc (Postfix, from userid 1052) id C40CB4E1463; Wed, 12 Feb 2020 16:06:25 +1300 (NZDT) From: Henry Shen To: robh+dt@kernel.org, mark.rutland@arm.com, guillaume.ligneul@gmail.com, jdelvare@suse.com, linux@roeck-us.net, trivial@kernel.org, venture@google.com Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, Henry Shen Subject: [PATCH v2 2/2] hwmon: (lm73) Add support for of_match_table Date: Wed, 12 Feb 2020 16:06:15 +1300 Message-Id: <20200212030615.28537-3-henry.shen@alliedtelesis.co.nz> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200212030615.28537-1-henry.shen@alliedtelesis.co.nz> References: <20200212030615.28537-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. Signed-off-by: Henry Shen --- 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_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