Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1393270pxb; Fri, 20 Nov 2020 08:25:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJx7q1F/v0WY//th/r3WhQ4Utem659Hf5Yv1en+vp5TV5m7y8cf6JvIaGK853zrKVNBSlSTQ X-Received: by 2002:a17:906:229b:: with SMTP id p27mr12671968eja.292.1605889537154; Fri, 20 Nov 2020 08:25:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605889537; cv=none; d=google.com; s=arc-20160816; b=RqC1RA+ruENUTpiNh3zXdZHdM4Jv0zfyokEHX+smIrvNJMlQg2jjjjKibA/b2wTx+N 1HRjdSiaw6zWDA5wfFKIpddKkiuXaJRFkfK/7946AhzC5i0VHprgjON6hTqBIJPuczyb G0Ui7t/ttZVo0KY9n37fRF0pra+fKV10jaylmyU+7RWwDEEiS85I3r/U1KTihMpqCARg Sn5o5kZQhlSZb8JwGEbD692YFvEDzSqEG8glRM8m/XqL4sPQc5xShTtjMgVxugI23EZo mynVDIocPdJKO5MD1fRaFYduJU/UT39Trvpy4b620Gad0Qfn3lVZZiyOTVJ5NCkBCGo/ XTsQ== 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=Keg1nSP3RWy8cBUQbvAJwl2Etvjsp9ofLSP2uYDiHBI=; b=Vp40htXErUVOucuLVjMIbzKPlflkjVZpme0/SKJHlU/Vy3A8QA0bZsEHslbE11ZMFV FEnM8tpD0byl18IYMN1MF6mF980R5RlPg+HtWf6GaIObKpyDhHiK8jq9YI7HSfwL2Z9k 8Cjm8h0WXNo/V7A/0J3HP1/SLEtfXGEkeA32Jbg73GRKvCOVss/peUVaCdi6HYaTkqzl ukBUqv5ugEJKl+MUm7EioCDzsz0hSwM/2yIGJI7j5+iCzdkjseYey/W2so3hgHSA3Ins AtAVK3BhIsLMVUwqJ9H0E94tXZNwGtD7iAByEI8Gg0fS2ygdtbFzradyqoH9hA1VOG8I 1Jfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JnErwS+h; 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 ef7si1958810ejb.146.2020.11.20.08.25.13; Fri, 20 Nov 2020 08:25:37 -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=JnErwS+h; 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 S1729910AbgKTQWj (ORCPT + 99 others); Fri, 20 Nov 2020 11:22:39 -0500 Received: from mail.kernel.org ([198.145.29.99]:39874 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728985AbgKTQV5 (ORCPT ); Fri, 20 Nov 2020 11:21:57 -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 34A3922269; Fri, 20 Nov 2020 16:21:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605889313; bh=v0K+8mHRZdrG+jmjHmmLywo+wk5qGff2vbPkBfzEYAI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JnErwS+h/YB8KEfA4yK8eA236q8R3S8Vk0JOs4ssTMr4g0nbU2tDarkBad2gYIX35 sd3kv69PkhkQRBnx7idhpTSmkvl4cB3jsRDmRU45S1ew0VC7quaxAZKEJ+HamuzYU9 BcHCBQfsmG+Nb1pYGguHEi1FyGtWquFIjvMxc7SU= From: Krzysztof Kozlowski To: linux-kernel@vger.kernel.org, Lee Jones Cc: Krzysztof Kozlowski , Support Opensource Subject: [PATCH 02/16] mfd: da9055: drop of_match_ptr from of_device_id table Date: Fri, 20 Nov 2020 17:21:19 +0100 Message-Id: <20201120162133.472938-2-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/da9055-i2c.c:66:34: warning: ‘da9055_of_match’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/da9055-i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/da9055-i2c.c b/drivers/mfd/da9055-i2c.c index 950b75ff6b04..bc60433b68db 100644 --- a/drivers/mfd/da9055-i2c.c +++ b/drivers/mfd/da9055-i2c.c @@ -74,7 +74,7 @@ static struct i2c_driver da9055_i2c_driver = { .id_table = da9055_i2c_id, .driver = { .name = "da9055-pmic", - .of_match_table = of_match_ptr(da9055_of_match), + .of_match_table = da9055_of_match, }, }; -- 2.25.1