Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1393411pxb; Fri, 20 Nov 2020 08:25:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJydgw4WCs24OIk+xpyD21r1SP0vIkJgFXufQjDtOjinSJpezPjgp8+ja957j6rLhZFnHUbz X-Received: by 2002:a50:9518:: with SMTP id u24mr36979051eda.124.1605889550727; Fri, 20 Nov 2020 08:25:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605889550; cv=none; d=google.com; s=arc-20160816; b=EPzT1GeliRp9/JuTaFCi/77Es+HblcWxizXSr0WrMHweKk7Tk9QdQJALZcCeDmZnB6 apebGa8G7ppvegrvf4Ckk4oci736YBLopGun4AdhMy760RGtzK6vPDJDlNEpeQKkcVNE 8xCL+yVIS813u5S39xJSrKfrt4lC+3J7wLUucLAQAiSuH2fES2trFZaR3tYqtHKp6K96 Xiz+8sZy6MsiwKlv3K4KVUkaa8NJ78CCOymEG/1tuGKHOGLjS50pNH8aIOmVVctXxbQ2 GCSI/lRzY3q9F6tpQ4NwK3iNZRUA+x4NYazSEzoh15jqQrpEZoHi6mCgZRTg6rBe13Et EMyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ZUbVld4LqKrVsaL3Bs1bIsi+5cpGVNSS7UajFS3rD1c=; b=czjKb75rOWoSMKC6BIbsrFUGzr+ABM3ah/sl+aO6CK7gziDSdGYPqoDaLmXV/wqtWf wEWQyVRDuuqQA6mnh0Ot/EobyeD17yBU4FnSpPhLthTs/YpDbbPBY/V46BslzY8oD05f DE9lIg9PBrWKqusy+wZ+55T0p1gybBa5J783rb1szpHM/Vy39nRQeXZVVV46Bki9mK9M xTwB/C7t2m2qcedNOPGkeliNc0DXw8q2lp3NQnvjSG5I/wzDHlEJpMkZfRrt7wqphWdd +0eksiXutXiHvmxe+EHq5mkmd4VG0V3QBmTeB3CWWVtt/zkYUKMtF8gw0NxLOd/em8bt 5m7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="uU/bv5rV"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j1si1967544edf.417.2020.11.20.08.25.27; Fri, 20 Nov 2020 08:25:50 -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=@kernel.org header.s=default header.b="uU/bv5rV"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729794AbgKTQWG (ORCPT + 99 others); Fri, 20 Nov 2020 11:22:06 -0500 Received: from mail.kernel.org ([198.145.29.99]:40030 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729781AbgKTQWE (ORCPT ); Fri, 20 Nov 2020 11:22:04 -0500 Received: from localhost.localdomain (adsl-84-226-167-205.adslplus.ch [84.226.167.205]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 026762240B; Fri, 20 Nov 2020 16:22:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605889323; bh=qXM9X1w2HAHjB+ckf1feJKTku+sj+5EwOS/Y5RnLarQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uU/bv5rVyw51+J+f4AYRvDt9h2Rfz+vunAl+Y1qdMvKj0NjeuqlcXMliPsD7oLdnx ByNy31Ko6Tk2WflXefQQlXZVAL1o7kBst5SegueuwyGnaXYsFLNZyBRsWhcbF+qeTm u/Ili3Fc+MBXM4nDMJbwVhwIJj5EaNQ19YI+JdSY= From: Krzysztof Kozlowski To: linux-kernel@vger.kernel.org, Lee Jones Cc: Krzysztof Kozlowski , Bartosz Golaszewski Subject: [PATCH 08/16] mfd: max77650: drop of_match_ptr from of_device_id table Date: Fri, 20 Nov 2020 17:21:25 +0100 Message-Id: <20201120162133.472938-8-krzk@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201120162133.472938-1-krzk@kernel.org> References: <20201120162133.472938-1-krzk@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The driver can match only via the DT table so the table should be always used and the of_match_ptr does not have any sense (this also allows ACPI matching via PRP0001, even though it is not relevant here). This fixes compile warning (!CONFIG_OF on x86_64): drivers/mfd/max77650.c:215:34: warning: ‘max77650_of_match’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/max77650.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/max77650.c b/drivers/mfd/max77650.c index 60e07aca6ae5..777485a33bc0 100644 --- a/drivers/mfd/max77650.c +++ b/drivers/mfd/max77650.c @@ -221,7 +221,7 @@ MODULE_DEVICE_TABLE(of, max77650_of_match); static struct i2c_driver max77650_i2c_driver = { .driver = { .name = "max77650", - .of_match_table = of_match_ptr(max77650_of_match), + .of_match_table = max77650_of_match, }, .probe_new = max77650_i2c_probe, }; -- 2.25.1