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: 661714 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 B963DC6FA99 for ; Fri, 10 Mar 2023 21:50:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231270AbjCJVuw (ORCPT ); Fri, 10 Mar 2023 16:50:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232263AbjCJVty (ORCPT ); Fri, 10 Mar 2023 16:49:54 -0500 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 754071F487 for ; Fri, 10 Mar 2023 13:46:55 -0800 (PST) Received: by mail-ed1-x535.google.com with SMTP id s11so26087859edy.8 for ; Fri, 10 Mar 2023 13:46:55 -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=gok7qgnzcNhThgxdJ8ibUyUvlq6GRjx5Ry6yVF1ldpkWYLdtpeyiw2nI75ieYNd7wl ROolRmRAbSWcRVL29rrKQ/eRWJWJCnsS+FFnxW6LXYHWj51JcBCA/sahYWl/IsPyxBFm 9Mcu/HGLOC7ffzgI49yXN8x//ltGe7wKg/zAsz6T8VoPF18saBXQMbtWxMMOuTyeexhr 4eSFk7PUEZfl7kJNr/8kbnMZ1RjjUCcpufgFTgwiN2uiH6a4L7oKJIDBEfoc3iA0LCE/ G6iioKWXM3AgoBMD1+lylo6Aalwa8oIGD/HlgOUpBjFMOXog3NnaiTzikcw7xp+IVG+8 x06w== X-Gm-Message-State: AO0yUKVlNBOjOkupXCTBGi23vBRBvFyqYp9lItCRSvoOLdXOrwsPmcYF 65h5JEwFDpEDRfjb/c2/Aslb9g== 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-arm-msm@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 --- 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: 662430 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 8D550C6FD19 for ; Fri, 10 Mar 2023 22:00:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232054AbjCJWAp (ORCPT ); Fri, 10 Mar 2023 17:00:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232079AbjCJWAZ (ORCPT ); Fri, 10 Mar 2023 17:00:25 -0500 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AD3914DA05 for ; Fri, 10 Mar 2023 13:57:10 -0800 (PST) Received: by mail-ed1-x52a.google.com with SMTP id g3so26272479eda.1 for ; Fri, 10 Mar 2023 13:57:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678485429; 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=C7/kQP0fh0Lt2W7V1+gzMuKXj8PiOrLnyRqUSUSBNFbcAXTY39AB8gwDVCtURMS9rq fS+p/9+36LLRQ3dnHNwSrMmtwOIx/h4fMzvoRryaPwg2OEPRLTtu8JxY2wjvw0SXA35H 5elOilyd/iM0TiZecGkoUvucNOH0gepGZVUhBDEaSNFi76spgcXdiCAV2A1XXxiXa1ur 20lEOuD8Nrb98vf6vu24B/BVc5JkEBcXcdQrI9Tpfyb44k+qsvUQwv3gScmdanLmChqG /l0qT/40ydYGnnHLlZgBDD8tog+atYKCSxvsvoyXT9Qc8WgErcJbxgGzVkZTNBZdbIQz lT0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678485429; 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=Ga9VRfmZQug0iP9K9vJsf/fbwxoPXOQDyATDjSErbX23YJsaprmfsoOIDICVePIEid F4rlaVjRQxzUhtXh8FVMyYBlD6IFF0nem0wYOihyY0HK5JywuJtZjy2dye5/nnn73bGt pjI9cPzASLZ8iB0+WMemz1kJ5HLaisCZl4rRQoGJNuESxrXVZS0qFkZzxc4VSN/P0IIw K/YjNUltIKeMBpioXKYoyoCYgQoh8xQJhg5DKuyMk/gTnPDREtqtNL4AaWJAOXh3FYoC 70xzsiGwPStCgfj+KndVezxV0y6PV0FgJUe303sEjoEd29ZNRfPu6rkJAMGFZiegXQrk h3oQ== X-Gm-Message-State: AO0yUKUlb7K1f29R2uUKyLyHAVI8BRmARf2+U5nvzciejj29Hh6Xg5MM fPfesFFGE18Vn8ZsSVGyPIOYz+jHiIz+VLN0quY= 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-arm-msm@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: 661710 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 2E712C6FA99 for ; Fri, 10 Mar 2023 22:02:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232048AbjCJWCQ (ORCPT ); Fri, 10 Mar 2023 17:02:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231605AbjCJWBl (ORCPT ); Fri, 10 Mar 2023 17:01:41 -0500 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D42B354CBD for ; Fri, 10 Mar 2023 13:58:23 -0800 (PST) Received: by mail-ed1-x532.google.com with SMTP id s11so26199142edy.8 for ; Fri, 10 Mar 2023 13:58:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678485502; 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=Y4b1J0gjRieah4UtLC5DqfEKBMioS7NaU7ooQRSeKaKrTRYnu//H422w8a32ewkD9n F/JxGfFa/idU8S20IHQvz1O290iTgRX1PgH0RTTlYIcrOC3MgF85l/2NO8QuJwfpEsFu wq44Fd2kiMwLBhE5/m5n3BvX8NO/bqwwosNbum9zOK5sAEGhCptUZx3/jay7mEOo8iE1 GN/3Y8hHWCNupHHujyV+yNzxkOQF15wLZ3pIfctwz5K3fozG5fbF7ArNGetRAoekJ51H rFci3basmhcjGfwJPjsrMv84Fr8VGbK3VcR674Z6PdtUqzKwbMaVd70PHfYk66pXIHPq In1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678485502; 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=kT/Vy4r0qsyyG1yXBvTSK+hlJ2peKHb+yVnRZcAzJEb9TBEOQxbCkTTsR0GmM5PP22 SHa8kxNmuNVxH11AZnEjQC19Tm6GVbH1/IR7Kl676/FgaMs7hZ5Ry6b700dUFDECV5lC NXGqm23enCgnn794S/B5VumyUhyUCKRdNN/OJjoNueujbdo/3SaqKQZmLYYFwgE1q8Bw 1MsTDrV/YW7Mz6svAk0oJlX0FSx3DC7IfS7BSbXpBHPKheyUc+6ALg40lWZbuGOKAQZs qcdcN7Bx/nzx16kIYv6Wc5as71aNEvJ9x9RsrF7fIclcoeGxoAgna/sdtTYBYuOW1Iz0 so4g== X-Gm-Message-State: AO0yUKUR+Oao6KORpRPshXOYTCtbv5uAGMfRdD82pc5bugGqWBOehSBI SD/WqbnPVa//n+hnNytQLLGvHm1QpQOMGi/qGH0= 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-arm-msm@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: 662431 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 B2BD8C6FA99 for ; Fri, 10 Mar 2023 21:59:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231926AbjCJV71 (ORCPT ); Fri, 10 Mar 2023 16:59:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231864AbjCJV7G (ORCPT ); Fri, 10 Mar 2023 16:59:06 -0500 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F6F2149795 for ; Fri, 10 Mar 2023 13:55:38 -0800 (PST) Received: by mail-wr1-x42d.google.com with SMTP id h14so6333465wru.4 for ; Fri, 10 Mar 2023 13:55:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678485337; 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=xt75kFz5LhO8Ch+Lm/o6KevHI1x4kNa7AEVEKIM6Ndmw3o9i+VukC3uSroI5L76fsZ L8KIFiGr4Ryg0mgJsKaC9/4O95OZm+3pEQyuH1tjP676k82srioW2XDoIfatrGTI25fo L0baeXcJRNcfGKLoyUunCYq8rfJROSCeV3DViVZOImdRwTRWGqV+yBEA1BcrBS91Aw8e LCC8UW2KmV86vNRKYFJTE9Y83QW09TxQWgW6WFsHQpdUsmlYy+z7d2NmH7Dl2f+QZvJ9 3TGN6Qw+WvumYKjy0lNiQQIvLMY97gz5cOCoW+ukKtmebNlm2t05BHQzB3/0ImT8zqv/ +hJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678485337; 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=F5nQ4oICSuO8lni016JwWCNe6mRnZFjqBcXqCPgUZAVZfyL//SeZU5edjFYmDWO1SZ crDIa2LF3fFWLic5FBI1U5fYbij8VVgDaaxgXuGOBz7YaGq7ZSHyYD3MA2KUrgKpDWAi lgMmZgI7dVkBmgZSTJ5gFxyMdCEnelyXvLEk5+CTiyoBY5vfqlwIfynj0eQvVyiuf3Vm tfPzQtC6yAio39onTylmPyPiSPi6JmXQdSR7OcruXRQ0cD4voPu5SoyKLcUoam8ub6Hf vNyx1ZPe66JWNniVsjCh7smmE0cWlaEQfA16xnU8pFo66cQI/Y+jtYnBYak5bkiUPqz4 cFVw== X-Gm-Message-State: AO0yUKVcTp2e0uMH5/XCbrkdBjQaotcM9Pnbmnie1j13WneAR8CJkx3E bxrD1JLMNmIQgaWnJgd4LbWzDJluFKxQlyt0I5g= 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-arm-msm@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 --- 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: 662432 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 11833C6FD19 for ; Fri, 10 Mar 2023 21:50:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231948AbjCJVu5 (ORCPT ); Fri, 10 Mar 2023 16:50:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232480AbjCJVuY (ORCPT ); Fri, 10 Mar 2023 16:50:24 -0500 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08848149D0E for ; Fri, 10 Mar 2023 13:47:45 -0800 (PST) Received: by mail-ed1-x532.google.com with SMTP id s11so26088617edy.8 for ; Fri, 10 Mar 2023 13:47:45 -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=VET8V/MQKsSjGUfO1uMw5GeTN2eSEmqLVh9Pc7NYQ1FQtfI0kDl8uh+d7RNu/t26nr R1smC05ubi49FDnD/W6b/biRVQ8/oCskrLJGMXPOYA3h/pDFvtJjZ4m3NQyET9qLE2Sn kBxCPqakyc8nNajIM5ReNhcLShWhpjXH8mY9HYzckoHo/r3KPiLcswb4MRucixPKIz71 so0iKo905MJSHjdOaMccSh+wB/2//1yfe3XdwWhrEPbQF8IXXI8yKXkuBYcj5N9tyItS b9GtYxY/BQlGeHYNv53wHLVSS5kUJiIc6LUiB8z45+HuKoH50JUXkvop7E4KBG3nlqlA Utzg== X-Gm-Message-State: AO0yUKWUDCtlU3ff1W4/2TeNOJcyea53Wcikvp/u64TzJGdXFxDyN1ED NJOP2qTI/iwbemOPa5RxGGeGqQ== 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-arm-msm@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: 661712 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 A09D4C6FD1E for ; Fri, 10 Mar 2023 21:57:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232245AbjCJV5m (ORCPT ); Fri, 10 Mar 2023 16:57:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229968AbjCJV5W (ORCPT ); Fri, 10 Mar 2023 16:57:22 -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 9FE7F134AE0 for ; Fri, 10 Mar 2023 13:54:10 -0800 (PST) Received: by mail-ed1-x52e.google.com with SMTP id a25so26363859edb.0 for ; Fri, 10 Mar 2023 13:54:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678485201; 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=ITAOToTfMDXBRrFa2m0lfM3+yTerBwn1QXaKvYlTZs3c0rravYhJ6iQDnf/vRDJT8Q DITIV6IPUIR8Jw0NLy6lj+H3ELKUZzutIdnG+y93lh1FClti1vIHZCUJLkxNQ+hKxoGX mOV6FNa68EbOg0wFsOqBMDwIuxzY4vTvfneFm5b5xT5wPBTsCQjATzyx4vcqGhjDS/0p vmoyuSp0wHnjp3yEaGtLG2HM/D05NmBsySEmJcBkkMdDA1Srm7iDndozCRQVlE9y8Ckq CfQJ6kpTgXbf8s2obRkyfaNyrXRKJf4tZRnaOI4R3YiJr3WAoUye00jHer82RxCQpWV0 TxYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678485201; 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=aSnrNH5JtwIVzTVFUYqrfFZQ7nZki8pZnqYW8r/+Bampxug4NmT4t1uPrCK9KDhtLN 2X0ee1JVSKS4X+T2PL/CqhLiRAP5FrsdtcJKX8xgmdGmjeiDUInbSOphyxsSX8ZdPdS7 PiYp0+KHLGJm/qwX+M0g0xwsZIq4hV5FpEUA3pteHmlXf7QJn1zcPV6vUf7KDhLBMOcS wvkkg4SqfXdIkkaeG7P6I9o+csEcvurczDr4cttiOMHM4SbgCuZ4r7uBjpE4gFVIycLE sKYBz6OMg7DkNHLcGnQgHlFokt5axAqfvqwYoWkW+pxcMWJROqsW2FoRvxFS2h+1Hwgp 1pQQ== X-Gm-Message-State: AO0yUKX8vO9kOmP0DY02nLwEW6Xqceo3uqqqtVLhA9dvvPqfmp3MMMxe bpt51kbDVX16lNv0u8dE+2x4AXTiAOPVAr5II3Y= 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-arm-msm@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: 661711 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 9D04CC7618B for ; Fri, 10 Mar 2023 21:59:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231933AbjCJV7j (ORCPT ); Fri, 10 Mar 2023 16:59:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232084AbjCJV7Q (ORCPT ); Fri, 10 Mar 2023 16:59:16 -0500 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B5FB1C5A0 for ; Fri, 10 Mar 2023 13:55:58 -0800 (PST) Received: by mail-wm1-x334.google.com with SMTP id az36so4353878wmb.1 for ; Fri, 10 Mar 2023 13:55:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678485357; 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=eVhW4axVNZLOXqGc5Wrwpn7P/gsnyy9pwbDSFHUlmHUFJNWqmCjfXpmAeQxCP7+zGr ySVzxipN+tfC5HOJ/UDLeYCNlvZUgHE3J+GYgZQybsXVutyiwAecFDKa2JFkGnX3NiBe 64FgjaMpDlTg7Qn5ViiOOrVMh0nerhg/Xz30jFXG//ZQj9F1fZUmAEskxsJ/hF2Fam5G OHfk0yOhGaq5lhN5ALPoH494jYP8kLTp6x3Quya7gApYvIJiXzb6eWoFFCB6ZMdYTiEN jbyfl6pKca8KMTq3Y6TEBA8kp7Hl2el78rZHu8CA/OQIO7nntQq2i6UdxW9ktx+v+hjc 6k5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678485357; 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=BjbQIX6MjUv9qjdg6Tce14e744i4vCpDDIxshgPMMfwMVMHloHv7fOB97Slxxl7RvO eSZxyZ5UFDZylJY7kxC0HTIRa3Xnfz6QPFIPHqnVdP21PtO9CIeIy8pmISt0Yd4zEyqy Ad791dLgTOZWu9hHKAy1097ZUWzM6PUIGAx/Z4SA1ja63ZxS6CgGUZ3iXbA+poVejzG0 iGK+LUZW/FZT5enFnNbKoGoay1ffNUJ1FBch/wGv5J/32ci8OFc6PCf2VJHjKkQBPmF7 L9lpOg93NRRYx8CotJhNBj6kQRK/0ItBhdXwLLXeaumvLlK7/+eZk8JMd0S4K7fkrXZr J8/A== X-Gm-Message-State: AO0yUKX0S04Vr/D3TfxWOnwl4PpBvszz10nyr8JK3jCYqgwg3lr7NWQD 2loIQul/4ttGsSz/oSZEaTvMsLJm82idGiLVSso= 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-arm-msm@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: 661713 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 A7B84C6FA99 for ; Fri, 10 Mar 2023 21:50:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231393AbjCJVu4 (ORCPT ); Fri, 10 Mar 2023 16:50:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232354AbjCJVuI (ORCPT ); Fri, 10 Mar 2023 16:50:08 -0500 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E75913B949 for ; Fri, 10 Mar 2023 13:47:19 -0800 (PST) Received: by mail-ed1-x536.google.com with SMTP id ay14so26006863edb.11 for ; Fri, 10 Mar 2023 13:47:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678484766; 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=qrYJxUKirtzDvIQKoRJxygRyf4FPSqFSi0XVFQVFP019hUJJhetCebgkKhN79vrs3W CIKol9vmqcKXFzhdYjb1UTjEWhmCgRQnV+R2cqHNKf+j8Mpyg7DhTibGCY0vHIrFfqbK MYdEtrAnXuCYjFCFYcqYzaJdXR+JsnR/WpDdA+37QliqOcRHKYHhRM2Opif9wIh+NaJk nH2yk34ZI9d3FQKuBY2OmYQHDrkb0n+JgCsnkEqH0/5fLxA61A6woskfsucn1TYakkKH 8fTp1iBBNuDjOcbESiG4v3E2y5Icd1y9w2E4PwTRKo37+BS1ebmSpl+iTtrjxBU4Yy0v 2w5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678484766; 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=x7jDenpSnHcYiQf84whhS9s9DduRnvOZyt8RYncDw0EUiDtyu9K/ZsjJBMDiVM3x8g n2YngwwbMSGAmvTIF61azcF4BKBeO16ujxVKxKLhPDE6GDOYMn+9AcGGVjvF9iDanIT4 eZcJXGF0AqxM0V/BQHjbDHK80R6zaGL22RVcOi3X8OECmG5qSSzIerSKbAR1QOECgk1D pOw+obNGNT4jrnfundd5m1bKjTDZI0nsVqWvytgk6aLzibK4LB8+3QpcC1c+0eEwR1CB iTSA+RGJYPs1/IkicqcTgZ44z+nACN4Wri8X9JrM5k1mADjfXjS51TLmJXl5Fg6EVa9H iJFA== X-Gm-Message-State: AO0yUKVKl1pH96jrVrOBkbs+mRb5Wo8sf2NLo/eKahmBVn6MYTA6613o 8dBLRgHf/nucksJ2EVYVetYJeJ4imzEyNefQCnc= 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-arm-msm@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: 662433 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 C0164C6FD1E for ; Fri, 10 Mar 2023 21:50:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231401AbjCJVuz (ORCPT ); Fri, 10 Mar 2023 16:50:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232299AbjCJVt7 (ORCPT ); Fri, 10 Mar 2023 16:49:59 -0500 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DC2214FE04 for ; Fri, 10 Mar 2023 13:47:05 -0800 (PST) Received: by mail-ed1-x52f.google.com with SMTP id s11so26089394edy.8 for ; Fri, 10 Mar 2023 13:47:05 -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=1g5uJ8V7y8yrMPEbDDLoSaunAq1YbnISFu6AIWcTya8npCvwrVW6WblxaR067oMHQx s+p2yuv1ERfv5dFEleGRsdgnVbrrXMIdzHDS6TniRw3VosHPm6xk0RJ4RWisd1IXxc0e nDTfJcwMWZmSX1333A3F2uRkQ0JVoBA08R43yrMi2aleoDgUOAK4ht6AW/cPxFiX27eC uVVyZ3FUGjdkAeZ28Mmuo9frA3PAOvr12PhdtgPkpjv7Qo1InNJQWVK6/r6mVma5gWqC knm2OdeifiLnJIh0Ulb/PF2ZfMBV+7+joxwNzr2l0luOmY0JkRc8rJKWwlI0zZfH4o9e SgQA== X-Gm-Message-State: AO0yUKVMHm7AO05nct1AWYLILBKt9BM+8tdwQqhzM/QpeiNC9gBDPJPB jlBvJEgPnCjlJgSKu6dUTzT/FQ== 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-arm-msm@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, }, };