From patchwork Thu May 18 09:22:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin King X-Patchwork-Id: 9732979 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6E9276020B for ; Thu, 18 May 2017 09:23:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 588FF23B24 for ; Thu, 18 May 2017 09:23:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4D43528210; Thu, 18 May 2017 09:23:35 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 DC1FE23B24 for ; Thu, 18 May 2017 09:23:34 +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=q/WAiiE6JMFMsB/B8KSCPXtFxEU1Qjv6xrr9hLrth+E=; b=VSXJnUTzOHmrCg 6lvWmcDSNz6m04OEYoZB57Mt2bNkBS3EpscIO7G0AuFjP22K2hZQ9kEKGGOKBavqtuR7ZzhVCqcHE 4Nwl2z8MhcXehzex73Yl5Sz1cenB1CMm7iRL+3QJgbuUrlmrBTAwlCwX/NgQvhFGlBOO3c4iAUyjc GnCGSN+RbBAhOj89f8xvqXb2YV8j4BROL2kNr1SMa6vetEyfTGHVXAE64DXrHavOZoxksqmMAQJoy 3apYsqIWgADuHOvvP+pIUCuzoJZaMEYgHjeayhnZFBBxawaWa+/8BV2Xn5lTXjQ4V3knb4UGxiU95 IW+YZE+5IGg/CW+ipaLw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dBHec-0007ND-0h; Thu, 18 May 2017 09:23:30 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dBHeB-000720-DX; Thu, 18 May 2017 09:23:05 +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 1dBHdi-0005Cj-IZ; Thu, 18 May 2017 09:22:34 +0000 From: Colin King To: Kishon Vijay Abraham I , Heiko Stuebner , linux-arm-kernel@lists.infradead.org Subject: [PATCH] phy: rockchip-typec: make dp_pll_cfg and usb3_pll_cfg static Date: Thu, 18 May 2017 10:22:34 +0100 Message-Id: <20170518092234.13276-1-colin.king@canonical.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170518_022303_616619_2C50F29B X-CRM114-Status: UNSURE ( 9.18 ) X-CRM114-Notice: Please train this message. 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: linux-rockchip@lists.infradead.org, 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 arrays dp_pll_cfg and usb3_pll_cfg can be made static as they do not need to be in global scope. Also make them const. Cleans up sparse warnings: warning: symbol 'dp_pll_cfg' was not declared. Should it be static? warning: symbol 'usb3_pll_cfg' was not declared. Should it be static? Signed-off-by: Colin Ian King --- drivers/phy/phy-rockchip-typec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/phy/phy-rockchip-typec.c b/drivers/phy/phy-rockchip-typec.c index 7cfb0f8995de..66b54a6f00f6 100644 --- a/drivers/phy/phy-rockchip-typec.c +++ b/drivers/phy/phy-rockchip-typec.c @@ -292,7 +292,7 @@ struct phy_reg { u32 addr; }; -struct phy_reg usb3_pll_cfg[] = { +static const struct phy_reg usb3_pll_cfg[] = { { 0xf0, CMN_PLL0_VCOCAL_INIT }, { 0x18, CMN_PLL0_VCOCAL_ITER }, { 0xd0, CMN_PLL0_INTDIV }, @@ -309,7 +309,7 @@ struct phy_reg usb3_pll_cfg[] = { { 0x8, CMN_DIAG_PLL0_LF_PROG }, }; -struct phy_reg dp_pll_cfg[] = { +static const struct phy_reg dp_pll_cfg[] = { { 0xf0, CMN_PLL1_VCOCAL_INIT }, { 0x18, CMN_PLL1_VCOCAL_ITER }, { 0x30b9, CMN_PLL1_VCOCAL_START },