From patchwork Thu Oct 4 13:37:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin King X-Patchwork-Id: 10626189 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 343891515 for ; Thu, 4 Oct 2018 13:38:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2432227968 for ; Thu, 4 Oct 2018 13:38:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 17CEB28E6B; Thu, 4 Oct 2018 13:38:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8DB9B27968 for ; Thu, 4 Oct 2018 13:38:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=lpbcd2c4gFrtU+BouZWKm53OHlBF60W0NZheNt/DBzE=; b=CLYPQI0Cg8u1nv KD+SOlLo4OF+htJi3+iOSksFBFAPOIhAGQU3a6OF8Amai4TT/yWusi28qHloWI27o31aVWZiIGgE/ wrCwmVz/eJ1hJsC/ZMO+ZpWsHfOjJi3b5q1hT342Rs/lMYLpY3xNQBkVG8buq0P6EXNGNS/Op3mfi bhF3t8MnWC0nV30aBQJqsYk8CrtP+sBYNWxlHzc0vPy8vRv20hQXEoEkIMSJNhjM+UiNZj9l0cr6p EE5jw/wf738pMl6SbzZcHY7VdH9LbmZ3d9DwATaVjsrNJidIKpkANiZU2CqkK4nVdFiajktBGIA9D ksvzMSIAGPjkvBIasYeg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g83pI-0001U5-Bd; Thu, 04 Oct 2018 13:38:00 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g83pE-0001Sp-G5 for linux-arm-kernel@lists.infradead.org; Thu, 04 Oct 2018 13:37:58 +0000 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1g83oz-0001rm-0w; Thu, 04 Oct 2018 13:37:41 +0000 From: Colin King To: Barry Song , linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH] pinctrl: sirf: make const array rsc_ids static Date: Thu, 4 Oct 2018 14:37:40 +0100 Message-Id: <20181004133740.19913-1-colin.king@canonical.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181004_063756_671138_7F58B08D X-CRM114-Status: GOOD ( 10.54 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Colin Ian King The const array rsc_ids can be made static, saves populating it on the stack and will make it read-only. Signed-off-by: Colin Ian King --- drivers/pinctrl/sirf/pinctrl-sirf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/sirf/pinctrl-sirf.c b/drivers/pinctrl/sirf/pinctrl-sirf.c index 2e42d738b589..2a44b911018e 100644 --- a/drivers/pinctrl/sirf/pinctrl-sirf.c +++ b/drivers/pinctrl/sirf/pinctrl-sirf.c @@ -246,7 +246,7 @@ static struct pinctrl_desc sirfsoc_pinmux_desc = { static void __iomem *sirfsoc_rsc_of_iomap(void) { - const struct of_device_id rsc_ids[] = { + static const struct of_device_id rsc_ids[] = { { .compatible = "sirf,prima2-rsc" }, {} };