From patchwork Fri Mar 10 21:45:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 661993 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4D64BC6FA99 for ; Fri, 10 Mar 2023 21:55:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232089AbjCJVzw (ORCPT ); Fri, 10 Mar 2023 16:55:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232090AbjCJVz0 (ORCPT ); Fri, 10 Mar 2023 16:55:26 -0500 Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0F5D16321 for ; Fri, 10 Mar 2023 13:51:59 -0800 (PST) Received: by mail-ed1-f54.google.com with SMTP id u9so26171152edd.2 for ; Fri, 10 Mar 2023 13:51:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678484756; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=wk7HS+JU2o5z8u8D+phfvsWKJzSNNAcdYUjf3Uh+O54=; b=Er3ZlEVmoHoIsKsxxmk3YiAdjEKW2o7aagUdkvk8ACc/AZti0eUPVtEBK8r4r0smjz pB+sZJQgrdwpZYqfgqnS00yJsCXRm4tuxpKc9Sv323GEDDFRnD1x9yhqAjA0TAH+pD39 /NgNPgn1qAdB2VMocKQHi9RfthoRIiGig5whQaEgGz2y6LGsFtY8/7u3AgHnh1ysTixO lo6Fd82XFMyeVBYZ+eAjyGMolA6uQ3qrk/k7hLR6+oBu47T9as0SzNFVZLaPbQ5p0hEu xzfTRrmQl+xvZUdIRvF+timC/BMSv6n2PpI4xuBenWLMdJ9K0wzRhzAUHGQoc6i5W58C qjbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678484756; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=wk7HS+JU2o5z8u8D+phfvsWKJzSNNAcdYUjf3Uh+O54=; b=2yLi7cqY8IHYoFdWOYIkS7vAynQG1BhGT0SAma65lHdzdH46HfXcbBiI0x5NIRKbLd brpZBuLGtQ3Pz1/moyLfY1VD7/Ik7AQBzxyHqqv9uIFTS8M2NW+8YUPBgUC2lJB+AYhq 67r+tptHyg9/k8cQI3P7XUz2gYKYhx2BiF0BAxPOJ3EGO8IJ7AP8DMMT6S407mAV7k+a pWnY6x7bjo1rJg+dXAhZPcGpxAR0PSGYbjJB5OAya3vthmoFN3ubi2A7DVTdaMtBKoR2 4YCzTr40scS5z8IBqpY4xtDNXT4RMKciSneTJXpkI+r4UnSLOeft1inLVaaY5ytaHMcd haZA== X-Gm-Message-State: AO0yUKVmekE9CgMjRkFf3zjAUAOlWSsKEp3agHyKUYowcRS2SWLLdcKV lmqWCQq8g2C22RyU0q0vjVjmCw== X-Google-Smtp-Source: AK7set+WoLtwDyXQs64e0OH3A2wuyS/PRDS8GfsEZZYgVKRSciJQ1Uv0cpz+JjrSwSdUGQxlZtR+eQ== X-Received: by 2002:a05:6402:202e:b0:4be:3b3e:c226 with SMTP id ay14-20020a056402202e00b004be3b3ec226mr23145020edb.7.1678484756376; Fri, 10 Mar 2023 13:45:56 -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.45.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Mar 2023 13:45:55 -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 1/9] regulator: lp872x: Mark OF related data as maybe unused Date: Fri, 10 Mar 2023 22:45:45 +0100 Message-Id: <20230310214553.275450-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org The driver can be compile tested with !CONFIG_OF making certain data unused: drivers/regulator/lp872x.c:931:34: error: ‘lp872x_dt_ids’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski Reviewed-by: Laurent Pinchart --- drivers/regulator/lp872x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/lp872x.c b/drivers/regulator/lp872x.c index c576894c3d52..c3a6e77db4d0 100644 --- a/drivers/regulator/lp872x.c +++ b/drivers/regulator/lp872x.c @@ -928,7 +928,7 @@ static int lp872x_probe(struct i2c_client *cl) return lp872x_regulator_register(lp); } -static const struct of_device_id lp872x_dt_ids[] = { +static const struct of_device_id lp872x_dt_ids[] __maybe_unused = { { .compatible = "ti,lp8720", }, { .compatible = "ti,lp8725", }, { } From patchwork Fri Mar 10 21:45:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 662619 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7FF30C6FA99 for ; Fri, 10 Mar 2023 22:02:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231860AbjCJWCV (ORCPT ); Fri, 10 Mar 2023 17:02:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231634AbjCJWBs (ORCPT ); Fri, 10 Mar 2023 17:01:48 -0500 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A969911C2 for ; Fri, 10 Mar 2023 13:58:30 -0800 (PST) Received: by mail-ed1-x533.google.com with SMTP id i34so26165200eda.7 for ; Fri, 10 Mar 2023 13:58:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678485509; 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=fbyswuRmDGOGqggdQqXqT7Cs+m5LJh2VXeBWZLXjLIU=; b=pf6zobEKtbQeV8fAFdLe0q/q3dfTjbhqA+95V4oD8nkpxQpbFM2HF509wa3ATk916Z lKezsqP4ncAY3lJ+Mg37nH1beoozkAWPrHiqH3de8vEpi/hqq9Mx3TR4Ynb560G9FZeF Y2qEyn3gu7z6mJ61XkhWnum1uN2FBOwgsesKiNMh1+9NCtspXQXTu1rp+/VJIUG4ttRG mZ2B7O3+jMrmhobGQ3cjeAy7pKzFKHVIGXoTm/hwLNK04k2ZZdWJxvHGOo8M78zetIhF 0cWUvli1Ob6RKqYYF+jRn1jv2HWZ5gJQ7UqJE5+vwZE7Pe33wJrPwJGr+ZPxhv6aMekx HOlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678485509; 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=fbyswuRmDGOGqggdQqXqT7Cs+m5LJh2VXeBWZLXjLIU=; b=0NhVF2fAI9fuVIGugdUJSUAJXPCyHkGCGOEpymGD6MFc9lhMEtS/cmzUFtD01AzyAN vFtJUtATncqiZtwbjUBI/r/S6PsWmNSFByDO2nOhZpiSFKaOkBDBHc1/hhBUeGPeSkCl j+iN41QdiMlSCN7vqF9mcqjUgSoetMRb24tx5SxmC7NJ6Ta2hD1NZO+OroBW5YJCeyLz crClF2zDvPxyYZg3C2KfVvIWO8IcmRc/BhoXo2bCDnp4XSsvGeuE79MsrE816J1AdrZj GDlMTVim/CTPfwQtA6/Pv25A+JV+O7hIPoYWwEPdZw/+PlrYgTqd9Ds+vj7w7vu2DCp3 qCWQ== X-Gm-Message-State: AO0yUKWvUCz152dk4rB6un5StzpVaSh6U/5SEx5KwggeUjBIu0sb4+AK 21iA1BQO4L1iH0rj11URJpa+CA3ug8tjJmoD8n8= X-Google-Smtp-Source: AK7set9Jf40AEyHbOmvy87vpw1Xb+IaWlreNsCXG2RxDHOTbxWqUwmXTuwkUpr4oApOCilH/43fEng== X-Received: by 2002:aa7:cb4b:0:b0:4af:7bdc:1891 with SMTP id w11-20020aa7cb4b000000b004af7bdc1891mr3712523edt.11.1678484757769; Fri, 10 Mar 2023 13:45:57 -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.45.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Mar 2023 13:45:57 -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 2/9] regulator: max20086: Mark OF related data as maybe unused Date: Fri, 10 Mar 2023 22:45:46 +0100 Message-Id: <20230310214553.275450-2-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 Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org The driver can be compile tested with !CONFIG_OF making certain data unused: drivers/regulator/max20086-regulator.c:289:34: error: ‘max20086_dt_ids’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/regulator/max20086-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/max20086-regulator.c b/drivers/regulator/max20086-regulator.c index b8bf76c170fe..c98a72f43935 100644 --- a/drivers/regulator/max20086-regulator.c +++ b/drivers/regulator/max20086-regulator.c @@ -286,7 +286,7 @@ static const struct i2c_device_id max20086_i2c_id[] = { MODULE_DEVICE_TABLE(i2c, max20086_i2c_id); -static const struct of_device_id max20086_dt_ids[] = { +static const struct of_device_id max20086_dt_ids[] __maybe_unused = { { .compatible = "maxim,max20086", .data = &(const struct max20086_chip_info) { From patchwork Fri Mar 10 21:45:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 661994 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1902AC6FA99 for ; Fri, 10 Mar 2023 21:51:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231925AbjCJVvl (ORCPT ); Fri, 10 Mar 2023 16:51:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230269AbjCJVvJ (ORCPT ); Fri, 10 Mar 2023 16:51:09 -0500 Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7D9A25E03 for ; Fri, 10 Mar 2023 13:48:11 -0800 (PST) Received: by mail-ed1-f48.google.com with SMTP id cy23so25985909edb.12 for ; Fri, 10 Mar 2023 13:48:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678484759; 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=Q2Xaj4iSh689/qyGj27neiGsk9yl/lficUi8UV/fm7A=; b=eazgQcZCrt9Ga/ofEu9u0wbMTdh3cJMSnCEAxHjKojovwHbBqFaYNXexCjrVV8WZmL IjIGFy96UGzAd7OYJe6GFIzlkbF3Ce+Yund8jNyCNNz7d5wyWXhYAz4KQryGHzpw6P5A syVx3nyQgnSWls3X+D7pzRHVmTiJzgID7JidYHMUoBnhnMm99uyjwBAKRV3leKmTysBB LWBkPn+fPwm5N37Y/AGsnnys0xkUahlfSm66E7i7Ce6rBCVFLWiOXgRiu8s1O+WwY8Kz gL5AWlwpg49IakfXXEZeLLZuHFCmM5UBCoAA8vz8TKmJ5ULqYx/gkvsBPbR2vjlfodr6 UD0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678484759; 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=Q2Xaj4iSh689/qyGj27neiGsk9yl/lficUi8UV/fm7A=; b=EjycHeezrJH2LcHJWHoOGB7Q6FXR7RBlv5aq78XEXz/p/ub9rOUyJ81r0UjvxW4Ce3 pVyaz23O9ITfSEecORs2K0vZ+SqJoG47EY3/pGVWebjo+IeDd0GtKd8dbnBn3MGJtpDz YGp0CuidtwTLuYb7YvB3/nVNmTD0FeaOZPxuUvt217skKEyhWVMMT1U+hMLvY8l2UI7b 5lTtkRAr4Aa1uZ3BrLvyXFTZAZqdSOxIQk7i5YUUpRsX8ZLzTZ45yMzf8CIXzvPL57dL 2LOUmhsnr7aU/cT1f8BClvTFrhcQAdPIjVamEnBIZMJHGZeX/7BGsoPaon1BK0ah9t2i vBJw== X-Gm-Message-State: AO0yUKUqXlKKjxnXNItIXTqyQRWNT2e0HyTn6kQjyjqzU1wKVoJt7/KY h7dwp+Yq/fq2reDa3CaaHt1JJg== X-Google-Smtp-Source: AK7set8Y8CbDyNpUk1qL/iKlbybJRcErNtYcWdpv7HASkaB+D40FRo/ph2ZBE+VfNIL0RyiGBCovDw== X-Received: by 2002:a17:907:a603:b0:886:7e24:82eb with SMTP id vt3-20020a170907a60300b008867e2482ebmr27928777ejc.21.1678484759246; Fri, 10 Mar 2023 13:45:59 -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.45.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Mar 2023 13:45:58 -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 3/9] regulator: mp8859: Mark OF related data as maybe unused Date: Fri, 10 Mar 2023 22:45:47 +0100 Message-Id: <20230310214553.275450-3-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 Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org The driver can be compile tested with !CONFIG_OF making certain data unused: drivers/regulator/mp8859.c:132:34: error: ‘mp8859_dt_id’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/regulator/mp8859.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/mp8859.c b/drivers/regulator/mp8859.c index f2300714d5a9..f893dadf2abb 100644 --- a/drivers/regulator/mp8859.c +++ b/drivers/regulator/mp8859.c @@ -129,7 +129,7 @@ static int mp8859_i2c_probe(struct i2c_client *i2c) return 0; } -static const struct of_device_id mp8859_dt_id[] = { +static const struct of_device_id mp8859_dt_id[] __maybe_unused = { {.compatible = "mps,mp8859"}, {}, }; From patchwork Fri Mar 10 21:45:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 662622 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EDD2CC74A5B for ; Fri, 10 Mar 2023 21:50:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231675AbjCJVu4 (ORCPT ); Fri, 10 Mar 2023 16:50:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232514AbjCJVug (ORCPT ); Fri, 10 Mar 2023 16:50:36 -0500 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F299D14863B for ; Fri, 10 Mar 2023 13:47:42 -0800 (PST) Received: by mail-ed1-x534.google.com with SMTP id x3so26029290edb.10 for ; Fri, 10 Mar 2023 13:47:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678484760; 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=O/rBHJ3jeIsF5DnV3iy779Hl1kpRg/pHkoneANxryCI=; b=WOf2iSCsXwS62ug/vDBqFMkRtix9/vWBUiRhgFZOjhuprtPBFxYrtqj4VBGgN2ub02 wHxkiZKTM6hzdnOZtBSurXVOk91OJx4tnEONmxiSrFRN/D1dIi+SyczihywuT4uwFKcY km03HwIRfAA9d461o5IegH9QGU8Bnmba3XqD002qlz09rBVzu3oAlMpM46IWJDUNmgzn 3bX1/YjTVYaH+Qao2tmS7iY4+dNs1ybWCR40VlOeEM2JKoUTLiPtyZYRw+YTrPCHQKNm xv83EEhaLiK7kgeZgp0fpScYcotjksoAhmVmIWurb2rCHY9TsrQao9bTr7AJ0x6ByhIX mu8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678484760; 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=O/rBHJ3jeIsF5DnV3iy779Hl1kpRg/pHkoneANxryCI=; b=frW7mt/bPrqe7w2Y8f84ccrUOWLkO76jvkObpcZC6kTwBBSKo3zGctCCac5RjfBK3O B2aReahlk2adUrjKPgPV21lSz0c9cKUPWL/IZ6j+qMthRXSqpp7wRUHGRBXTd0grCh6n J3Be36pqZwWAvdaqcFT1jhaHiiotq1DMBVQUhVPEkrGii1qgyUn0DZ4wxZEv7WLOWMrY Y0F57BpcvQ8h+WgGLqiyznNaJ+l+bpxQzOpquVt54kzxiaMumpuQwU15KG0g6l1f+cp7 0P+YPJxeIEnteDkXiDR03G1TaV8Vob/DxIQyCBBlzi85mChRrVpXbYdwcT+PtI/OMdgn tqnA== X-Gm-Message-State: AO0yUKU6/SMYS3+kJN2u5lQEeAFHvH3reTSMsKPX0LaPtQ1KadsDL3Qi oBy9yUMzvB7RtHwVMM3EtLJYMA== X-Google-Smtp-Source: AK7set+bDbd+tDtc8yzuKVJawgRnJ7VqI7if9gpDpNki1cjNuiiSF0MocAmariVO2bQ/AAQWG2Y7+g== X-Received: by 2002:a17:906:c001:b0:8b2:d70c:34ae with SMTP id e1-20020a170906c00100b008b2d70c34aemr27335425ejz.71.1678484760561; Fri, 10 Mar 2023 13:46:00 -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.45.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Mar 2023 13:46:00 -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 4/9] regulator: mt6397-regulator: Mark OF related data as maybe unused Date: Fri, 10 Mar 2023 22:45:48 +0100 Message-Id: <20230310214553.275450-4-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 Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org The driver can be compile tested with !CONFIG_OF making certain data unused: drivers/regulator/mt6397-regulator.c:400:34: error: ‘mt6397_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski Reviewed-by: AngeloGioacchino Del Regno --- drivers/regulator/mt6397-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/mt6397-regulator.c b/drivers/regulator/mt6397-regulator.c index b9bf7ade1f8a..526acc8fbe80 100644 --- a/drivers/regulator/mt6397-regulator.c +++ b/drivers/regulator/mt6397-regulator.c @@ -397,7 +397,7 @@ static const struct platform_device_id mt6397_platform_ids[] = { }; MODULE_DEVICE_TABLE(platform, mt6397_platform_ids); -static const struct of_device_id mt6397_of_match[] = { +static const struct of_device_id mt6397_of_match[] __maybe_unused = { { .compatible = "mediatek,mt6397-regulator", }, { /* sentinel */ }, }; From patchwork Fri Mar 10 21:45:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 662620 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 80155C6FA99 for ; Fri, 10 Mar 2023 21:56:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231846AbjCJV4G (ORCPT ); Fri, 10 Mar 2023 16:56:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231877AbjCJVzk (ORCPT ); Fri, 10 Mar 2023 16:55:40 -0500 Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D5C1591EF for ; Fri, 10 Mar 2023 13:52:08 -0800 (PST) Received: by mail-ed1-f50.google.com with SMTP id cy23so25986251edb.12 for ; Fri, 10 Mar 2023 13:52:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678484762; 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=zfueC8Ud+TxsewqPkS/fDVgjDJwxhwka0PgPS2fY1z0=; b=K90kT9LAH347IN7aaGanwpD1pGk+lr2nq1GFiAMOUVwmIajNMd6FSgYobHYmDVe9x+ Xp0RTAY0qIzp8AoHNjDiPlu+3mDAZfq/Vr8asnGZVsr79W36eaRS8WnYAvQX2tbrOEFh 2DKmocArpikKUh3AylbFB76+tUeJo+Z+ATf1qkC299jJSQxQ0Mp9SyRFgp10jIAgx6zp b9IxsffVZrjR4bh4TiWORGRCvFLUvKkZcmN5ATVcoAIeDj0b9lvAAgcLhR26fXw/4hXx xLzxw0tUw9i1/U96VbyETa6TnMH543wkwqp7D273J5X3JKQ6uQjUThg6on6eCTDis43o Biew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678484762; 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=zfueC8Ud+TxsewqPkS/fDVgjDJwxhwka0PgPS2fY1z0=; b=ppL9SQx/K5izIoZ6CXSTSDc6bmuGaTlCmRjOwhHhcQKKtcZKIhdV8UWlC9qO98/vFj xOE4NgSe+Fjkd6AtJVo+cNrcaNeSuTdC2XbMumKA1UpUC5HSwqYJebfaf/sFqOGArWW3 Kd5hPmmqQ4ebH6cPjgwjXEOd+aaF9JCB/bWj6W5+AkXmtVQR659U0Ezxm2mEfnc9D6bO xydvUpYZEPGft5yBEUcLYEJ6BS8cy8mr5ooTEHvU5/CcOEZqQ37xR+XMS1XiLy2vDEqN 5z2fs3bmqHhaB/W7yp71K1zcjhCN76vbNywTvnBPUP/ZjBxz5of9uD0ySARUCd+2m7UI u82w== X-Gm-Message-State: AO0yUKWUVYonNQaLwh5O9Ljsbx8jh2L+OhDzyOrTli8UEfP9E24Gka5f U1liIL/iWY1vObMRqnPckA1dgw== X-Google-Smtp-Source: AK7set/+NUmIgbATpN/GwzCK7LhiB3l9y1iTqOcCxXGLgQn2rcQCH7j8l4FZmoegGAD3sHE0TVBUJQ== X-Received: by 2002:a05:6402:128b:b0:4bf:4b5c:1d66 with SMTP id w11-20020a056402128b00b004bf4b5c1d66mr22987359edv.31.1678484761848; Fri, 10 Mar 2023 13:46:01 -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.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Mar 2023 13:46:01 -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 5/9] regulator: qcom_rpm: Drop of_match_ptr for ID table Date: Fri, 10 Mar 2023 22:45:49 +0100 Message-Id: <20230310214553.275450-5-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 Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org The driver is specific to ARCH_QCOM which depends on OF thus the driver is OF-only. Its of_device_id table is built unconditionally, thus of_match_ptr() for ID table does not make sense. Signed-off-by: Krzysztof Kozlowski --- drivers/regulator/qcom_rpm-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/qcom_rpm-regulator.c b/drivers/regulator/qcom_rpm-regulator.c index 3c41b71a1f52..602526669648 100644 --- a/drivers/regulator/qcom_rpm-regulator.c +++ b/drivers/regulator/qcom_rpm-regulator.c @@ -991,7 +991,7 @@ static struct platform_driver rpm_reg_driver = { .probe = rpm_reg_probe, .driver = { .name = "qcom_rpm_reg", - .of_match_table = of_match_ptr(rpm_of_match), + .of_match_table = rpm_of_match, }, }; From patchwork Fri Mar 10 21:45:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 661992 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 436F6C6FD19 for ; Fri, 10 Mar 2023 22:02:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232013AbjCJWCN (ORCPT ); Fri, 10 Mar 2023 17:02:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232043AbjCJWBk (ORCPT ); Fri, 10 Mar 2023 17:01:40 -0500 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0ABBE50F91 for ; Fri, 10 Mar 2023 13:58:22 -0800 (PST) Received: by mail-ed1-x52e.google.com with SMTP id x3so26137271edb.10 for ; Fri, 10 Mar 2023 13:58:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678485501; 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=KcJ/60CiNR3l+Pd6V0GQSncdZhxdS57tle43QWwe+tY=; b=Nbkbeg7+7A7jjsQfRRSWDnMVFoXB4vo4KsPrX6fzOdQtSajcivTyjTout0v66vEJBx wZc4wJG73LqQt17wKBkLNB1MjUt3X9xYjVt/jKrM8Lpw0oyz17b/WQvAti4V4sL+LJRB 9KzK6GvCQ0ILSVYbGFPcxbYuRvjrvL6w7Lv80wvdO+LOBCNDeILWHUAXXZXP2nIcC3HJ Y7cTWVzhb5INaTxGnHxu1YKiY9pl1OLLKBsHLw/G7fhCBpobP1kUYHXLVM/gkjJj/33w Q8fgrELKytWVBNETcpa87GhM6KzjhnPXMDzZzdFjB4Q8TXpF5/YYe+NKeLPXc8uLEsrl 4MJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678485501; 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=KcJ/60CiNR3l+Pd6V0GQSncdZhxdS57tle43QWwe+tY=; b=fLORbfQR2MH7LihGv9rtRpj+tEiw5vls/hdG+H59dHauU+MrS7/BH1m3O9Hecws5Z/ G4gwfo55T+Um+YQeCgp5C1hQjpsZ0dmweF3YeOBPncxJEHlCdaJN2+RKVbEKDAL1qstS BNhdYDb2pCQHfVmxnq28k+ienYdqf9HVh9N+tdy/zxygba8brzojrhpwGkK9zoksibq/ YV7aONR749LBBcPs/BfJ3FFQkpIwr3Cx/dm9Hea3snzf0GXZyzSomCufjnuE2Rda0Al5 PkQo2JCNYJPmPc67h4u4xwPoBAJhJSPpzfUeHc1LmInXjI2HRtCvY4gsID6k4WVUYEC1 RXzw== X-Gm-Message-State: AO0yUKVudMURJDEi1LDML80m2JHtsoNnkd/LTd/bjm+s7VDr0JQojrxo yYOEg4ABho1nHuhjK6lXHepvMyqtGl1JIHdGUvs= X-Google-Smtp-Source: AK7set9OWMBah+XLayBu0sHj0HkkG9xbD8r5gmAQE2k0KYWypz08rz5B2gUGv07SfC4WtPbAYwCNgQ== X-Received: by 2002:a05:6402:654:b0:49e:1f0e:e209 with SMTP id u20-20020a056402065400b0049e1f0ee209mr4078070edx.10.1678484763064; Fri, 10 Mar 2023 13:46:03 -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.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Mar 2023 13:46:02 -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 6/9] regulator: pbias: Drop of_match_ptr for ID table Date: Fri, 10 Mar 2023 22:45:50 +0100 Message-Id: <20230310214553.275450-6-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 Precedence: bulk List-ID: X-Mailing-List: linux-omap@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). drivers/regulator/pbias-regulator.c:137:34: error: ‘pbias_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/regulator/pbias-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/pbias-regulator.c b/drivers/regulator/pbias-regulator.c index 4eccf12f39de..4ce06072f3b5 100644 --- a/drivers/regulator/pbias-regulator.c +++ b/drivers/regulator/pbias-regulator.c @@ -231,7 +231,7 @@ static struct platform_driver pbias_regulator_driver = { .probe = pbias_regulator_probe, .driver = { .name = "pbias-regulator", - .of_match_table = of_match_ptr(pbias_of_match), + .of_match_table = pbias_of_match, }, }; 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: 662621 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 62614C6FD19 for ; Fri, 10 Mar 2023 21:52:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232167AbjCJVwE (ORCPT ); Fri, 10 Mar 2023 16:52:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231856AbjCJVve (ORCPT ); Fri, 10 Mar 2023 16:51:34 -0500 Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54E0641B59 for ; Fri, 10 Mar 2023 13:48:23 -0800 (PST) Received: by mail-ed1-f45.google.com with SMTP id ay14so26006623edb.11 for ; Fri, 10 Mar 2023 13:48:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678484764; 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=HUdcJC4Cd5zElccuX+GbRtfxo3va0E5mAFfwm70nVNKW9fWz+h4Mm47hy+d4b5Yx1b 8hRPjxJCB/CYJ4Ni3e6sH/OqeNrVB7Mhu/frfhdBzlFpoKmqWFR+2p/w/zwO9qMY7hxw gDQGFVH3GwtaDwu8pooTrF1dvRJAvj6ZLbuEHWyuMUbT8e65YI17iUIVHwqPDKttWlR8 0jI0k+N0klRxt5SdhxBlnFNzMsqIYzPP9d4DiisRSqecYBvd/Vvy2Ayt01LjJRw59ReL Zh7Ky9BdfEHdUuKsLXy9qNyzH3K50nYuyGGhPOfMSAbrVYWWGevxcNyamWZZamNET7T1 qtXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678484764; 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=JfjGy7A1uTPRwQ8V7sAQXAlTCgBCzTQG2v9dK5rKWZEh2UZ8sLuQ7KM8gu/6YgY4Qj UKyemPG9WzgoRYnPY9oQcWhTfzGYgIzFHV/AcbiHt3sKTiHWmvYG7kyRPs6D2BlR5zB0 NLSBYnb2qnX1qZAtsE/F0o0t5KhX3AwOT1jv/5cVm0tkuag15GrtZ1l1H4bUAvPvyGtF fGkbVFNzonyoyxkshyXfsgJt5t97Qx6XSiT/J1QahsHyYIqfFBpqkftKfGexcmvF+JVg CsTjgmzxc0nTLVsv6dM8NPyXm9Px9QxRbBk60avAGfFi3aYp3uEqj7DnTf19EWQFnwr5 hmeg== X-Gm-Message-State: AO0yUKW+JBh7vD+V01De1MMY//RBpb37c27KnAHQ/JiVSjQFQSIQKsba llmVUYyUQWGDLWXQErmnnBEdbw== X-Google-Smtp-Source: AK7set+FDz8JZEWAMgcBwbvkCP7C1J/GKrOFdld1I4i17Xvc2r83YnSVN8MhDyC9T68rpj0eW9DONA== 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 Precedence: bulk List-ID: X-Mailing-List: linux-omap@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). 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, From patchwork Fri Mar 10 21:45:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 661991 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6E6E8C6FA99 for ; Fri, 10 Mar 2023 22:05:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231784AbjCJWFX (ORCPT ); Fri, 10 Mar 2023 17:05:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232274AbjCJWE7 (ORCPT ); Fri, 10 Mar 2023 17:04:59 -0500 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E3CB19F00 for ; Fri, 10 Mar 2023 14:03:10 -0800 (PST) Received: by mail-ed1-x530.google.com with SMTP id j11so26256398edq.4 for ; Fri, 10 Mar 2023 14:03:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678485789; 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=R8KkEKWZ0gN3SHohoHksswAukmLUtCvLSzW/QOjaikM=; b=CrbP7x7mFKFEadLy2m1i596OVPBIVCD90Gi+0DI156lg1du5aezIPT837YdWHl9/FG RxioT1N1wVcak4vk4FsbeFG0AtN6G46sVvCfJ6h9Vf1RGXvwcWFZW2UHJHoWH4dbcywe 4F460LEn3koRnfF29tUTKHug0GIZGsWPd51xC19UWhlD7Jf0ON6WQfRXTsGWQOLaX6YM mQUpp5M0IOViDhvFC7dUQTwCRtkn0T+1jcEnU9DZJy4m0HnCgMRyS2S3qPab85X2Bdzv 5LJoDHs3gqlXtUU5vI/cvqOCxpr226Sp12Ecu9SVWlmIcVLlRMdfejAVvq/FLzMLeqHa Ensg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678485789; 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=R8KkEKWZ0gN3SHohoHksswAukmLUtCvLSzW/QOjaikM=; b=H2qkHN/D1PGFAgzoNDXZGaoqJ121BxFmaLkQXGtH0rQ+NGQcdrIxR8JrSAAPmPIWgA iNJpWJAgKD0nF6sgtw01mr/vkIFi0EPArzunobC707uqZRuahI7qCxfTuWyufOfyjhYL yqQaX7aRPQHnyLRicdO6AbgiX6lWfbl96nmjuAmyJADt9/bBuJNmMFiLBgdv5ndZsGvp 8G/ncHKCqWS6xIjor/1b/Petx+CK50nLR+BBNKJ93ImgoVNBayRc+1h8ZVzR1j7U8D8v xwnFOKecW+VmdgJB/QHMZ3T2tGdEmTXCYs7jPklUO43ux/FJnO/95Tbm2FIyeKbYF9Wc Np3A== X-Gm-Message-State: AO0yUKXxZBq1kfoHI+fdRPuexfZrTQAl3f+QgjO8LONp/NNwtbIeIxst mxakqj3UrzK0uy3rN2yDdzpUtDLE5b5xChHvydA= X-Google-Smtp-Source: AK7set+C1404HGuunAfB3xCjsvxwrV5s95xwTHsN/mtfZYe+CBdiAMXV1CvssAAn+RAQCfGwoNG2gg== X-Received: by 2002:aa7:d646:0:b0:4af:601e:6039 with SMTP id v6-20020aa7d646000000b004af601e6039mr24224761edr.22.1678484766010; Fri, 10 Mar 2023 13:46:06 -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.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Mar 2023 13:46:05 -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 8/9] regulator: twl: Drop of_match_ptr for ID table Date: Fri, 10 Mar 2023 22:45:52 +0100 Message-Id: <20230310214553.275450-8-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 Precedence: bulk List-ID: X-Mailing-List: linux-omap@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). drivers/regulator/twl-regulator.c:553:34: error: ‘twl_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/regulator/twl-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/twl-regulator.c b/drivers/regulator/twl-regulator.c index e2a20d512152..fe80a5e20bd0 100644 --- a/drivers/regulator/twl-regulator.c +++ b/drivers/regulator/twl-regulator.c @@ -656,7 +656,7 @@ static struct platform_driver twlreg_driver = { */ .driver = { .name = "twl4030_reg", - .of_match_table = of_match_ptr(twl_of_match), + .of_match_table = twl_of_match, }, }; From patchwork Fri Mar 10 21:45:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 661995 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D7320C74A4B for ; Fri, 10 Mar 2023 21:50:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231936AbjCJVuz (ORCPT ); Fri, 10 Mar 2023 16:50:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232302AbjCJVuA (ORCPT ); Fri, 10 Mar 2023 16:50:00 -0500 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55800B855C for ; Fri, 10 Mar 2023 13:47:06 -0800 (PST) Received: by mail-ed1-x52b.google.com with SMTP id ay14so26007030edb.11 for ; Fri, 10 Mar 2023 13:47:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678484767; 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=7QldUnB9DK++r9IeP/7G8h+f/oI23uHDDVTXX+AKTbM=; b=VSJs/E5dMhRtlW23myb9CxFaOl67MqXlhDSjdI07vDkatFJhqu6CTSFwx9q3jk4IJ0 bLNsXnJ6+2s9GtGXkd7GBt5x7sYZ+LJ6dmr6h43+y3oDVroQezV7kUy1CcFnFU1Llg/E YC+gYRYEU29XI9Kozo9ZU3HdP4ifHCmd+GZJpqZhPLNUhkCMU8yoesRPvOZr46kDXbTl /d1ly+BVNEqnEm1enL7nmd86UITqH1KUu17WoOU9FI/k//BzGg0h0nFednZCVIzwHxQf xeGKlzIl8oKtLGBZlAVJHz3+hBVez+oQZG+JsgLigZTWVhOLq3G62m+NVQLBRN3DsFja D0cQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678484767; 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=7QldUnB9DK++r9IeP/7G8h+f/oI23uHDDVTXX+AKTbM=; b=x2t/CxFnHy+totbP3Qn6xPVePRHz/BXAbiClqLTj5Usywpc7/t4oEasMw1Je7/Ri5K yQwQrL2iWZwRZeW13hm8Tx612gPPhxRrF9zZS0H/mxQNBO6HJZGFwq9J5hs5vpo8Vbex NmbsusIJt/vkmf/j9HWPFHf2QuJAOtitAFXj5qLhHuN1PmVi6zwpJmLzEjj48R59M9Qe gT4U/fszf7xQS73h0DmZVwYU/14kxMdNzETXzIqVlEnTbv1Egn2uxiSrFrAZsOG9PSkX xR2FkoJ4djQF8xnp6tQi34YbKSZeUQ85FhuL1sxM4RL0vqs24UI44iqFx5JDo7+RaXKF 0lqg== X-Gm-Message-State: AO0yUKX+vscNURP/VnXAhLtgK4mwXOT/NToDIyFI0E15Yc5enndXq0j6 vWGV0tsnq2zn1EyskPyGDcEmjw== X-Google-Smtp-Source: AK7set/TN6HEHcHKgSpnaQNAvcq6/J9mJlM0Vmdwb6gRlrMLE7hUWXDBNwCju/6Q/6+EyoGExFlw2A== X-Received: by 2002:aa7:d683:0:b0:4af:75fd:8214 with SMTP id d3-20020aa7d683000000b004af75fd8214mr20546242edr.38.1678484767172; Fri, 10 Mar 2023 13:46:07 -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.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Mar 2023 13:46:06 -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 9/9] regulator: twl6030: Drop of_match_ptr for ID table Date: Fri, 10 Mar 2023 22:45:53 +0100 Message-Id: <20230310214553.275450-9-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 Precedence: bulk List-ID: X-Mailing-List: linux-omap@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). drivers/regulator/twl6030-regulator.c:646:34: error: ‘twl_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/regulator/twl6030-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/twl6030-regulator.c b/drivers/regulator/twl6030-regulator.c index f3856750944f..be798f3c129e 100644 --- a/drivers/regulator/twl6030-regulator.c +++ b/drivers/regulator/twl6030-regulator.c @@ -765,7 +765,7 @@ static struct platform_driver twlreg_driver = { */ .driver = { .name = "twl6030_reg", - .of_match_table = of_match_ptr(twl_of_match), + .of_match_table = twl_of_match, }, };