Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1392643pxb; Fri, 20 Nov 2020 08:24:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJzLznTtKeO42lve2O5x9RNu7mwDM+IWCeFk0uQQV09SJhFYZlpRes0FU2nPhUG8EZwqOzgJ X-Received: by 2002:a17:906:c357:: with SMTP id ci23mr32243444ejb.311.1605889481869; Fri, 20 Nov 2020 08:24:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605889481; cv=none; d=google.com; s=arc-20160816; b=LFSyLTJvtl/ViAiFgQw9hYkJAQ2hVPqqmg9QdH3+H3uLc6W/m7zQEUr2v+yIUI2WeL Xuj+hLQpmjr75yLaZ8bUd1ik5koDISy9zHsd6wNC6ryy7a+gm3MQQ+kueoMPID4DRDd4 +gxnpGRCkp57yBK/PFzGqj4naBcqxBssm/6kd8245YvH/OhtZ5G1bpT6U6dXRsYovDNR H8p32IoI0237InRtcQOO/dyT4Jragh3eqwh1FOWL5AV1QUPL7f6RzGaKJsNQo5DpUGeg onbh11ZaR1Ibap2fYZPPt/gtgL3Xez/omtQQQfC0UXZL9Wndzf3j+KsksBMrtBJfw02o P0FQ== 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=olBw1Not3DD/sX8B1F8aOfC76qHEICRDZkS4OQ6Ivh4=; b=YgCOTU2+paZViUxg2HQ4Px+reoHSQ6KLe0e5absMV5KBG6BRsAN39jvfjHBokUyJ0Y e+ifZHRwP9mRJ87pmwbRGDGnXSV+UaA0YHSHmCZMLJbj/XyF8a3OF3ys0or2TQCw1yYj gdiKiTpqU8VmZXezK4sbcfVQS3M+xvBNyQ87fRgJ+qixPfncEUYTxzI+zuZLOjhRNh5y kexnq2NbA4loG7Xlgs6bjzLRSEfdGoP0dTrkP4L8IeMG+Eb5+QyGiJeMV1milvARoLHY xkZd7ay2F4lkUJcbYYVyo6rCUfNF+JRF7mhrraQ6CKv4t97CDTuQPHO9D98xyG6/6uLq OMiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fRfAElqP; 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 g18si2043905edq.53.2020.11.20.08.24.18; Fri, 20 Nov 2020 08:24:41 -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=fRfAElqP; 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 S1729774AbgKTQWC (ORCPT + 99 others); Fri, 20 Nov 2020 11:22:02 -0500 Received: from mail.kernel.org ([198.145.29.99]:39976 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729756AbgKTQWA (ORCPT ); Fri, 20 Nov 2020 11:22:00 -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 0E167223FD; Fri, 20 Nov 2020 16:21:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605889319; bh=wjN3b+SDMtOkyh6wWNbt4HBO7IkMuKfZOL8pRLi4EwU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fRfAElqP65lYSoa3TqS0UYRqjivHVE8BZmJLPheAb75Ns0rRp4Gy7SfrbuQUI9k5a 5o7TkodYj8BmMlumrrvy8wsHqzG6C6z4WIC75XlVsXIrd7oBMPR2tV2rpb1juJooHe 7l2SM8IaDSOLOkgx3sYjSV5lTu8SYK8VUwOUVvuQ= From: Krzysztof Kozlowski To: linux-kernel@vger.kernel.org, Lee Jones Cc: Krzysztof Kozlowski Subject: [PATCH 06/16] mfd: ene-kb3930: drop of_match_ptr from of_device_id table Date: Fri, 20 Nov 2020 17:21:23 +0100 Message-Id: <20201120162133.472938-6-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/ene-kb3930.c:194:34: warning: ‘kb3930_dt_ids’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/ene-kb3930.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/ene-kb3930.c b/drivers/mfd/ene-kb3930.c index 1c32ff586816..83243e668e3f 100644 --- a/drivers/mfd/ene-kb3930.c +++ b/drivers/mfd/ene-kb3930.c @@ -202,7 +202,7 @@ static struct i2c_driver kb3930_driver = { .remove = kb3930_remove, .driver = { .name = "ene-kb3930", - .of_match_table = of_match_ptr(kb3930_dt_ids), + .of_match_table = kb3930_dt_ids, }, }; module_i2c_driver(kb3930_driver); -- 2.25.1