Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1389125pxb; Fri, 20 Nov 2020 08:19:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJxyPbPLTX270eA0ttfLre9KRhTvgljgnWMPbfXMD9gCRoqAMLjKfekDlWj5H8ypf28CMbIu X-Received: by 2002:a17:906:c096:: with SMTP id f22mr32317449ejz.488.1605889190951; Fri, 20 Nov 2020 08:19:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605889190; cv=none; d=google.com; s=arc-20160816; b=y6hstQ54GAsgUT5fRHbwuTiU53X0vDGhcexuXwsTBJY+49aMG1j5YRIx+T3dGlr/Mx dCKcOMhTj8q6qukYjI+iFIHtZEwSa/ItaYwQYhkfPbdj909ncOkYx5AzSSoJYMTWCqXV p1NMxzY1DPvhfaGyTCE6Q36eqEmDfZo7c8SCSL0Z4XQ6v8kmYn3qimMhR+rei9iJKerS zpWIlzehIK+EmkNPnqvQF31WSRmNSTw4Vf+i6z0r9JWiNSMAwh6/xHmhBM0UgeRHtlf+ hSJOkFX8szJ5cD3FCIzd4BrWqEPGJTaRrNsn+eGgn2rk2rjTzGD1g00qWPwuCsVwUcH9 TmoA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=6+YAsYTsE/16WtaDO9PzUaHr0bH1RHDe7Ss6m3qVb8A=; b=Hd17VJvrPHL2YMi5kFCVtfaObTMmwWWXeFXQK/ra9NEIdj6MaKFZcBS4FBemTJ+lYl Fw/pCz23WK/FGkCiiRd0yYuQpb++3pJI8q/kPY3RaI8e7AcjQnxS3NaJLROqKGggM9dD 4gQisEN2ll+WpiqC7vE4anIj+W3EMXRN0LYtGEdRRimSBSJOhACtgF6VofZQ52EbwBYk lDnALWUJfaIOhfe65wnWwpZN3hyxLDZIMy64vi4yT9A4enuLy9qqFcNF4cQdJ9TbFLGZ bAfQqfEcODbJCv60qNNLW2ETUQbwsQm+/jU1ggLzxy9Nlu64ub9rNqXU2Qd0+4Qwi7dH hARQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HBJpufyX; 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 a6si1895734ejj.398.2020.11.20.08.19.27; Fri, 20 Nov 2020 08:19: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=HBJpufyX; 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 S1728563AbgKTQRi (ORCPT + 99 others); Fri, 20 Nov 2020 11:17:38 -0500 Received: from mail.kernel.org ([198.145.29.99]:34124 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727911AbgKTQRi (ORCPT ); Fri, 20 Nov 2020 11:17:38 -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 18542223BE; Fri, 20 Nov 2020 16:17:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605889057; bh=6crPrNanCPybdIoCOUE0EQqvWG11iCTFahxPBw6lnv0=; h=From:To:Cc:Subject:Date:From; b=HBJpufyXc3DBA/oH7WTc5JtitlxByPOEhplD3rghF59ynLElTFbo+CIqKKlCMb3Ce LXbSCcB8O5cHpg/3+E00aER2ZgdP/lN8uzlty5liGSt4rC7rIDUY15fdXoYCKQIpNE HwHpuXK0D4GXGdba1nE/5kmodRdIH9OO5EWscNx8= From: Krzysztof Kozlowski To: linux-kernel@vger.kernel.org, Liam Girdwood , Mark Brown , alsa-devel@alsa-project.org Cc: Krzysztof Kozlowski , Jaroslav Kysela , Takashi Iwai , Shengjiu Wang Subject: [PATCH 01/38] ASoC: ak5558: drop of_match_ptr from of_device_id table Date: Fri, 20 Nov 2020 17:16:15 +0100 Message-Id: <20201120161653.445521-1-krzk@kernel.org> X-Mailer: git-send-email 2.25.1 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): sound/soc/codecs/ak5558.c:418:34: warning: ‘ak5558_i2c_dt_ids’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- sound/soc/codecs/ak5558.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/ak5558.c b/sound/soc/codecs/ak5558.c index 2f076d5ee284..427d7d51bf53 100644 --- a/sound/soc/codecs/ak5558.c +++ b/sound/soc/codecs/ak5558.c @@ -423,7 +423,7 @@ static const struct of_device_id ak5558_i2c_dt_ids[] = { static struct i2c_driver ak5558_i2c_driver = { .driver = { .name = "ak5558", - .of_match_table = of_match_ptr(ak5558_i2c_dt_ids), + .of_match_table = ak5558_i2c_dt_ids, .pm = &ak5558_pm, }, .probe_new = ak5558_i2c_probe, -- 2.25.1