From patchwork Fri Mar 10 21:45:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 67791 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1206wrd; Fri, 10 Mar 2023 14:31:00 -0800 (PST) X-Google-Smtp-Source: AK7set8vgu3u+2kmWG+K1Fx0DOdIDToZDvqgGJ7FGy9YrXsHLEx6a9GGpdQFF3YBbV6xplu8seJe X-Received: by 2002:a05:6a20:6a1c:b0:c3:2bef:bd62 with SMTP id p28-20020a056a206a1c00b000c32befbd62mr28746009pzk.1.1678487460316; Fri, 10 Mar 2023 14:31:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678487460; cv=none; d=google.com; s=arc-20160816; b=ty8RYlCABc1A+ta6/LAiO2wzD7kfVtgfICHR4M0FtWMvGGHapNhtPPWTRjy0oNS+d9 R/kM0E0n8L6foDQyRJOsH4qMdz4BIHloSXKfdv4e+u1xMoWofAwG1lSOYJ9leVu5cFSd WVa1bFx5snTwD5MnqTQe9b0M2f4WOyMiGWxNQONCDK2MlV6riWlMJ3XAP4ExrGRAkMP4 xRXBXW4EcsBVXMSmk6IqpNZuQ5KnaVk3JpsYR5PTOpxcozPhxUKRv+RWN+frsOKTBJN4 7iHzbIqeZVNQRSa4ud+M0c3XTuBVBJcmlUDZZJQqe7oSjKALFz0c9a66pQgS4gvzvUjd C/Pg== 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=Q6R58u+pco5SwiyuNgUjgOgUh5UTBCxq4L8biqsKSRA=; b=B9yXUsB37+TNyQKCB7kO2BDDiOjlaxT2imuIiaK16GE3aT9MzDdQlF2AiiV2wNWJbh ps4XMicAEoC4xbdX1EIF9/IAjczcU/VqLqa4lsXs4FSCHWEjCDxPaKTxLN74sLC0Ti1X zlNFtaHJjd3MjuIM3Yrb5MErqW6j6EwofjKpT5Yl/h+WeJFX2U3wQjsiPTpF/CScyaPy MWOfYuFSjW2DYwRUUL5ix/iczhWir56hzFj1OdWe98XjsmRv4COYHZfLxe4esN5aXT64 x/HggyRkyUh/Rl1jPhw3gHv4zZGSBmxSq89kG7/hK3ug/SSoOgzf3lcHhJvbCS8hv7ws d2CA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mWS+4qFc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c20-20020a6566d4000000b004ff6e36c9cesi756631pgw.590.2023.03.10.14.30.45; Fri, 10 Mar 2023 14:31:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mWS+4qFc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231863AbjCJWAP (ORCPT + 99 others); Fri, 10 Mar 2023 17:00:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232136AbjCJV7w (ORCPT ); Fri, 10 Mar 2023 16:59:52 -0500 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E86E814B00A for ; Fri, 10 Mar 2023 13:56:25 -0800 (PST) Received: by mail-wr1-x42e.google.com with SMTP id l25so6333867wrb.3 for ; Fri, 10 Mar 2023 13:56:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678485384; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Q6R58u+pco5SwiyuNgUjgOgUh5UTBCxq4L8biqsKSRA=; b=mWS+4qFcBmAUsvwKvaxCkq2NVC0Zf4njkBgPVEoE0t3ffHs3o5LpuB7FxiNZqwinFM 7TwUsQurrmEdhhe9PNAvWK2Sx81SekYyWlekDo4bxQhB0+77vVV1clOmvkrKdEKW81h8 9KuonJXOJM5ivmun15KOvkIShxsUmHwz+SIGj1x/0YP74vAER5arvPnzuMY/dnylA1L0 I9S+6iaDhXNiDGMBQDMiEap571OBIzW+mvvteeK7ymL0veN02sW6m+veBJkOL+jPu5En Z6sPZs+4XEwRMbMY06dWvoK6YlsoYb1cmz6WPB89+FI1D31FjmUYXt/Y/v/w8e6t40O+ KEIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678485384; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Q6R58u+pco5SwiyuNgUjgOgUh5UTBCxq4L8biqsKSRA=; b=PNrz5D/ZNX8TjUqYNUVwSI7rs3qBh4gYDOTJuOvFrhC5v3v9UL4lbdzNKRn/kxasMU W2KZbTIz/sQP2Cbmr8zII4rz1UZJJGpcQkYoU703yYzdhhavbfkpUcCIh+Myv7aaLtY6 3f8ZiXj1CLnrvxd1qau9fM3ZhcceBRH+hC7zXDNXSk4c5IhOUBlVMPcrWHu3Yi3q6T2S i2bxP452hWqAuGN0rhqa9mgxZCdxrTcbcQTx8N72/B1z4DJetSTJ8xSny3Xlla4+YCmA BEeN8FXIfApG+Q/u8Ck652xBP0lKmms79nZZ2Kx0QJUEbUiUj3+BneEMO/jQupYLahr4 oGPw== X-Gm-Message-State: AO0yUKXd0UH0oXk2XPX0aHmKE+0J+c/ZVqM8o8prBNMJ4pL1c9T6zSVw L8Te9fBBB3kkaPjMeMNQIVzNlRQg3dzoIjMh/H4= X-Received: by 2002:aa7:c2d1:0:b0:4ca:4a5:91bb with SMTP id m17-20020aa7c2d1000000b004ca04a591bbmr26053986edp.13.1678484764382; Fri, 10 Mar 2023 13:46:04 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:34:52e3:a77e:cac5]) by smtp.gmail.com with ESMTPSA id u7-20020a50d507000000b004be11e97ca2sm471873edi.90.2023.03.10.13.46.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Mar 2023 13:46:03 -0800 (PST) From: Krzysztof Kozlowski To: Liam Girdwood , Mark Brown , Laurent Pinchart , Matthias Brugger , AngeloGioacchino Del Regno , Tony Lindgren , Andy Gross , Bjorn Andersson , Konrad Dybcio , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-omap@vger.kernel.org, linux-arm-msm@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 7/9] regulator: rpi-panel-attiny: Drop of_match_ptr for ID table Date: Fri, 10 Mar 2023 22:45:51 +0100 Message-Id: <20230310214553.275450-7-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230310214553.275450-1-krzysztof.kozlowski@linaro.org> References: <20230310214553.275450-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760021666707681794?= X-GMAIL-MSGID: =?utf-8?q?1760021666707681794?= 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). drivers/regulator/rpi-panel-attiny-regulator.c:390:34: error: ‘attiny_dt_ids’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski Reviewed-by: Neil Armstrong --- drivers/regulator/rpi-panel-attiny-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/rpi-panel-attiny-regulator.c b/drivers/regulator/rpi-panel-attiny-regulator.c index 34514976475e..3953fc1f389f 100644 --- a/drivers/regulator/rpi-panel-attiny-regulator.c +++ b/drivers/regulator/rpi-panel-attiny-regulator.c @@ -396,7 +396,7 @@ MODULE_DEVICE_TABLE(of, attiny_dt_ids); static struct i2c_driver attiny_regulator_driver = { .driver = { .name = "rpi_touchscreen_attiny", - .of_match_table = of_match_ptr(attiny_dt_ids), + .of_match_table = attiny_dt_ids, }, .probe_new = attiny_i2c_probe, .remove = attiny_i2c_remove,