Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1584473pxb; Fri, 22 Jan 2021 22:12:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJzYcrCIfuYKyqQeMYCMn2y9TBmDh4NfXLWGQjZEtHg/IM3F6T34qYsuKnKap/8D92DA9EJs X-Received: by 2002:a17:906:dfda:: with SMTP id jt26mr656964ejc.240.1611382348822; Fri, 22 Jan 2021 22:12:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611382348; cv=none; d=google.com; s=arc-20160816; b=ZciYnYn+2K6DCNdtVTgXc02o1muctGE5Ao3RiGtyCoa2MDA8ORh05UBPlHpl8BmXP8 AjlrpTp7ykFz+1FqCDd+oNHesWI1zRW/T0HVz8krMHPYK3tQOjGtSYdyqqu+m4K7mgI4 rco9ZcIxlTolSZXLOzIw5DtLGjDb79Ul5YtIkYx1QoP7lMEttGcmRbKZVQEYqn+zH97q ucSCCur4loZDBU3SBPdEzg/l479CLiV59gLJtRqF2t9AXs3dmIcv0XxK1akmgMSXelXp DzW2yI3pHbSe2H3kUDXJbt31/8ZrbivSFZIX6VG/RcPD3gtYwxLUWxoZA8Xv/+3hmZge tjPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:autocrypt:from :references:cc:to:subject:sender:dkim-signature; bh=/mjmVI5gF3/N0cEnj1sHAD/0LAdxcCppsyC3PEGIIMY=; b=OAbEBccJ36ZTq4onxFNzSPz4puSA78wUYc6HvOEfRrhZOqIevszwkyqM4mLKS2Gct5 EQxAlrAJRHRv2xCxWwB9i93nMmdZSiHuFTirBjg2vn3WSHHzGwthMSGhRReSqCPzJSAW N+Q5MEwyf6gWrCNbV9P58vlj6dEQW1u+ygzCbciqpRWi65E5QvKwmE16zpJtzItKn/OR iBBOxIFwT17ZzVaIxuC3n2sZOlVzVjoRUMjxWGqEqOOrp3vRQDSTn6phUan7XWD0mUxE thxtzmn7CRY8UTpPBP6QmIcRycIR8byIZYL8+NikcvElhnvbOGX9dZEkANzUrvAwz22m MhUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="FtSdM/Um"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m21si3177908edq.433.2021.01.22.22.12.04; Fri, 22 Jan 2021 22:12:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="FtSdM/Um"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725939AbhAWGKP (ORCPT + 99 others); Sat, 23 Jan 2021 01:10:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725730AbhAWGKM (ORCPT ); Sat, 23 Jan 2021 01:10:12 -0500 Received: from mail-oi1-x231.google.com (mail-oi1-x231.google.com [IPv6:2607:f8b0:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C6EEC06174A; Fri, 22 Jan 2021 22:09:32 -0800 (PST) Received: by mail-oi1-x231.google.com with SMTP id h192so8675990oib.1; Fri, 22 Jan 2021 22:09:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=/mjmVI5gF3/N0cEnj1sHAD/0LAdxcCppsyC3PEGIIMY=; b=FtSdM/UmqHH/Te7JtIIR+Ni35pVa8buSkobOaLI76OyI0y0fO/WJev6jOCOWok/Pi3 /2SHMxBHruarJ/jMoEk4ujSwqLXZ7202LKQ2fRdweOSBU3SFEGYQV6Rd45jMfgNUiBMa cer8VJiRrvM4NhRxnsMXSr1SoPXshwhLjTXO3IttlF5bFKvmEruorQrbdqCZdr3YaD54 jqBdOSO6Qsldi5lcUdliOSkU9Gtj+hhqz4WJwDwnrHz6hiJEAFxjqUKNobhqQgPvJl0B 7nWtpGsP3EzmTiIDIN4nzgSxLFxMK7pT057TE3tVM4Q8GDG3S1SFZvtDy84OTKseD37g EDmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=/mjmVI5gF3/N0cEnj1sHAD/0LAdxcCppsyC3PEGIIMY=; b=UY+RwaQ0DDKLQ8x+NB+QOt1d2YzHzH5ba6iVEzoFxx5gNduoGJagwllv7ufB0CJRqt xEya33ksdx6AVuKCvoKfpn82y0Pj6goPMInusMkS0V5wqtD9CmDOFAA6xRJASc8qzS4B 5ApHE7NLWa2wrgOQxR9v566PQaR6ZKQYlFGm7LcGBbVqfs2g/gY59WTSdCYKCw6q3wT3 LgEtLWIkSPqB3ERN8y/YcTMw5va1EaQWxzwPkKPK8hEKKtQBxfDBKVZPRFWErnEuJR+m BSeWIS55CdnQ80i2hVBb8M9kHgxWcU3EHVPWWhHsueQMFHSXN7l9H5DGd6KRtGjufSbT Y/JQ== X-Gm-Message-State: AOAM532aXZ988JNwM9/sXvwbUk0fBgrsJNEYvnTlaAA5bYpEWKZX3qhk RAXoQDuZaJXlBo5mjfb0syWP5u3ysaQ= X-Received: by 2002:aca:911:: with SMTP id 17mr5463867oij.162.1611382171408; Fri, 22 Jan 2021 22:09:31 -0800 (PST) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id l70sm2190717oih.56.2021.01.22.22.09.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 22 Jan 2021 22:09:30 -0800 (PST) Sender: Guenter Roeck Subject: Re: [PATCH v2 5/6] hwmon: (lm70) Avoid undefined reference to match table To: Stephen Boyd , Rob Herring Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Arnd Bergmann , Geert Uytterhoeven , Jean Delvare , Rob Herring , Frank Rowand , linux-hwmon@vger.kernel.org References: <20210123034428.2841052-1-swboyd@chromium.org> <20210123034428.2841052-6-swboyd@chromium.org> From: Guenter Roeck Autocrypt: addr=linux@roeck-us.net; keydata= xsFNBE6H1WcBEACu6jIcw5kZ5dGeJ7E7B2uweQR/4FGxH10/H1O1+ApmcQ9i87XdZQiB9cpN RYHA7RCEK2dh6dDccykQk3bC90xXMPg+O3R+C/SkwcnUak1UZaeK/SwQbq/t0tkMzYDRxfJ7 nyFiKxUehbNF3r9qlJgPqONwX5vJy4/GvDHdddSCxV41P/ejsZ8PykxyJs98UWhF54tGRWFl 7i1xvaDB9lN5WTLRKSO7wICuLiSz5WZHXMkyF4d+/O5ll7yz/o/JxK5vO/sduYDIlFTvBZDh gzaEtNf5tQjsjG4io8E0Yq0ViobLkS2RTNZT8ICq/Jmvl0SpbHRvYwa2DhNsK0YjHFQBB0FX IdhdUEzNefcNcYvqigJpdICoP2e4yJSyflHFO4dr0OrdnGLe1Zi/8Xo/2+M1dSSEt196rXaC kwu2KgIgmkRBb3cp2vIBBIIowU8W3qC1+w+RdMUrZxKGWJ3juwcgveJlzMpMZNyM1jobSXZ0 VHGMNJ3MwXlrEFPXaYJgibcg6brM6wGfX/LBvc/haWw4yO24lT5eitm4UBdIy9pKkKmHHh7s jfZJkB5fWKVdoCv/omy6UyH6ykLOPFugl+hV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trhLuLjHRCaG50OOm0hwPSk1J64R8O3HjSLdertmw7eyAYOo4RuWJguYMg5DRnBk WkRwrSuCn7UG+qVWZeKEsFKFOkynOs3pVbcbq1pxbhk3TRWCGRU5JolI4ohy/7JV1TVbjiDI HP/aVnm6NC8of26P40Pg8EdAhajZnHHjA7FrJXsy3cyIGqvg9os4rNkUWmrCfLLsZDHD8FnU mDW4+i+XlNFUPUYMrIKi9joBhu18ssf5i5Q= Message-ID: Date: Fri, 22 Jan 2021 22:09:28 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20210123034428.2841052-6-swboyd@chromium.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/22/21 7:44 PM, Stephen Boyd wrote: > We're going to remove of_match_ptr() from the definition of > of_match_device() when CONFIG_OF=n. This way we can always be certain > that of_match_device() acts the same when CONFIG_OF is set and when it > isn't. Add of_match_ptr() here so that this doesn't break when that > change is made to the of_match_device() API. > > Signed-off-by: Stephen Boyd > Acked-by: Guenter Roeck > Cc: Arnd Bergmann > Cc: Geert Uytterhoeven > Cc: Jean Delvare > Cc: Guenter Roeck > Cc: Rob Herring > Cc: Frank Rowand > Cc: > --- > > Please ack so Rob can apply. > This patch already has my Acked-by: above. Guenter > drivers/hwmon/lm70.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/hwmon/lm70.c b/drivers/hwmon/lm70.c > index ae2b84263a44..e3153ae80634 100644 > --- a/drivers/hwmon/lm70.c > +++ b/drivers/hwmon/lm70.c > @@ -178,7 +178,7 @@ static int lm70_probe(struct spi_device *spi) > struct lm70 *p_lm70; > int chip; > > - of_match = of_match_device(lm70_of_ids, &spi->dev); > + of_match = of_match_device(of_match_ptr(lm70_of_ids), &spi->dev); > if (of_match) > chip = (int)(uintptr_t)of_match->data; > else { >