Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1392161pxb; Fri, 20 Nov 2020 08:23:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJwGsfFtnEfzS9jNGX8EJaEHukok7jNWnxLPprc6jruETbQIqRW68sBTfeMYWY9AHlKOh2Q5 X-Received: by 2002:a17:906:f8c5:: with SMTP id lh5mr35426792ejb.77.1605889438571; Fri, 20 Nov 2020 08:23:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605889438; cv=none; d=google.com; s=arc-20160816; b=o1//c4kwtidtnknffl3I+AWnWl+D0CqLzcqoTBdXEA19YbNvVSsyZF1IwvkgTInzJd e/2ul2kkNssohrT/i5CJDrrsH8XWLGlJmxfPr9z0aaEJgLkPn2SqHt9xw5JNOOLujUDt 0IrFikLaa2SUHR7aZEs4WK+FvkLBfxWv9ah7gGccyr5ItKjeWavANBDNDjSuT3Zx9EJg e+aOe6NIhYzmk4vnZ1fqEsEjt8S1MZSXmId7q+WFF0y9NHGy1D3EUwq4a57cO4zF5TQZ dHXNuflEoJwVXfFLQ4TKKdA7aiKTkgvNc1KTcb/NKlkyYXbX8ePp8pCb/onXXlrKQPWL h8TA== 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=kB7jXoyiug37Yp51OStmbtbtVzu2a/q32voqtJ3MnPg=; b=wTSIwBjn8Unaul+8c243Iri1ZSuOozQfUkcHsqO+mMTSvD4+6IVQlsLnuE0TYOEQII cDI5prf/EKGpDNc/mWJag/zvzdN7gfrGO6KDN8KM1ZX8mpsXk95BefenydRuHAIlRx1A 05cB0e06YDKZIBl1nxGX/h//2eAxxvSb9Cbjmk94Oe+jjbuaXW8bwBne/9V+tS+z8OD0 vcVYG2bK4dqX3vztQFYHvNzVx0WoVb1z1lYvLJP7ciWWR3dkLMT5camZhcrO3F7XwOfW rTJ+sli7nv7x2L/Jwal+3+PJwJNLTxOnIeEMgCPGYnDy/Vnl2B/35NW9GvD3KNxqGLiP bvyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=yp2Y80CB; 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 o93si1997186edd.157.2020.11.20.08.23.34; Fri, 20 Nov 2020 08:23:58 -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=yp2Y80CB; 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 S1729744AbgKTQV6 (ORCPT + 99 others); Fri, 20 Nov 2020 11:21:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:39924 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729740AbgKTQV5 (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 A4539223BE; Fri, 20 Nov 2020 16:21:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605889316; bh=jD4Bn4VQyoQtrvqTo3OyWnBnEvZ0eaqrOfZgmShItzU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yp2Y80CBDdX73HEUGWtTvWl/tu3dFo7lweglcdheEbEKOiVfWLuI+gr7nIWn0elMM lIlWKkkmE8R/gezRIc5YV9dlaaZ8P84QGB6d6Ta3AByW2gUy7BcAwhkguncUNK1nNO snWXO2FnrOH0Z0V9vpSOBfwKkqATETZLOrgRwd/c= From: Krzysztof Kozlowski To: linux-kernel@vger.kernel.org, Lee Jones Cc: Krzysztof Kozlowski , Support Opensource Subject: [PATCH 04/16] mfd: da9063: drop of_match_ptr from of_device_id table Date: Fri, 20 Nov 2020 17:21:21 +0100 Message-Id: <20201120162133.472938-4-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/da9063-i2c.c:348:34: warning: ‘da9063_dt_ids’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/da9063-i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/da9063-i2c.c b/drivers/mfd/da9063-i2c.c index b8217ad303ce..3781d0bb7786 100644 --- a/drivers/mfd/da9063-i2c.c +++ b/drivers/mfd/da9063-i2c.c @@ -455,7 +455,7 @@ MODULE_DEVICE_TABLE(i2c, da9063_i2c_id); static struct i2c_driver da9063_i2c_driver = { .driver = { .name = "da9063", - .of_match_table = of_match_ptr(da9063_dt_ids), + .of_match_table = da9063_dt_ids, }, .probe = da9063_i2c_probe, .id_table = da9063_i2c_id, -- 2.25.1