Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1392375pxb; Fri, 20 Nov 2020 08:24:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJz0zwIJvfMOVVViEyPr+HniXp/FYQ0kZKTNsjWkKbAtf50V5+9uzMydxN8vdY7WkGncTHML X-Received: by 2002:a17:906:2747:: with SMTP id a7mr21550342ejd.58.1605889458882; Fri, 20 Nov 2020 08:24:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605889458; cv=none; d=google.com; s=arc-20160816; b=xP/IT3MTLrA239g/lYuHwAjwhvX5BF4LS8GYITphJd6QSa1UwZsOw+KhhJYE2pJQD9 wD4gBWU1dhEFKyH6Bn06UQlKtyQDSQM3RrA3DYEj59HUE9Sv8aIzE7I0ctwpvfRiK9br g5ObVxubetvLoIqXNeblXX3fJ41B5b9Kekgl4Yu5l++NkDtvuf7AKLke11oWoONpMo13 rcpjkFAwBpULT7MWe/whmz4rU2TBThY0/d4TJMVypQVxBOJQ0uA2SwK6idh7ohZBj0bQ j0RMO0zXST9zPMkZvfNzXSLKbMdkIJPY6cEbLjxeE1MW+1LFJ1PGGZ2ABGHRBuwFmfOK lAcQ== 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=zAJvmeGHzdcj8Dfau1pScHu6Sd8Yh2ZYehHgJK1B8Q4=; b=jIU6wMk+RHMgChGHb0N84CHjkRxOWpEFn5mOyD6EP32Qszu/LGg/85mUv0tnuAMEXz OEyyNue2emxghsHWGayCImBmh3oZxDWKXLBh7PZnpUXCKR/iFbYNzOB78B6/+TV6Bf/i EEBrK4Dy5Ak6pjFQbG5bqPo2xYuXaZzxEbOUh+0FZ7iMODHIpRMKWSVP9/n7/ozTA1Bs 0MSfUWUzJKKMWuigwZi5A9IYdkwJwvfjdR0GeNzW0Ote8X90ccmAJZYrD3AAJZApE5hf p4frfsvd0kzsx2tTE+Ay8hnLuBshCsn+WO7mZ7KCXdVkXqwWtIsLuUb8vEelfBILJIGM tnYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="fo9q/f0i"; 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 g26si2058612edy.14.2020.11.20.08.23.55; Fri, 20 Nov 2020 08:24:18 -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="fo9q/f0i"; 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 S1729803AbgKTQWI (ORCPT + 99 others); Fri, 20 Nov 2020 11:22:08 -0500 Received: from mail.kernel.org ([198.145.29.99]:40070 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729497AbgKTQWG (ORCPT ); Fri, 20 Nov 2020 11:22:06 -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 C70CA22269; Fri, 20 Nov 2020 16:22:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605889325; bh=agFLxC3mtKTcAs7ANkNVWcbi6mAYm1OGmqWipy+YV5Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fo9q/f0iERt6G37kFs1oubhs1P15Nm/dtK1SSfaTZzNigKlV4dCE62iqwtydAWcQ2 lWiqHTBxmXeNCtukm/iGsnaP1FW5pRFTjKOcG3T7PtEgZm2+fLl3Jb4/blqLoVhc6R EmEphC3xDexv6FdP+zLD38k7Jwvp7bgmjzLUPZTI= From: Krzysztof Kozlowski To: linux-kernel@vger.kernel.org, Lee Jones Cc: Krzysztof Kozlowski , Chanwoo Choi , Bartlomiej Zolnierkiewicz Subject: [PATCH 09/16] mfd: max77686: drop of_match_ptr from of_device_id table Date: Fri, 20 Nov 2020 17:21:26 +0100 Message-Id: <20201120162133.472938-9-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/max77686.c:148:34: warning: ‘max77686_pmic_dt_match’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/max77686.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/max77686.c b/drivers/mfd/max77686.c index 71faf503844b..2ad554b921d9 100644 --- a/drivers/mfd/max77686.c +++ b/drivers/mfd/max77686.c @@ -270,7 +270,7 @@ static struct i2c_driver max77686_i2c_driver = { .driver = { .name = "max77686", .pm = &max77686_pm, - .of_match_table = of_match_ptr(max77686_pmic_dt_match), + .of_match_table = max77686_pmic_dt_match, }, .probe_new = max77686_i2c_probe, }; -- 2.25.1