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: 9732981 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 000EF6020B for ; Thu, 18 May 2017 09:23:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DD24E23B24 for ; Thu, 18 May 2017 09:23:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CFA8F28210; Thu, 18 May 2017 09:23:43 +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 88E2123B24 for ; Thu, 18 May 2017 09:23:43 +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=M/7av4fVO9Q6AGxfzJf81ky5DpDWQlENBwpWx3JItSk=; b=KPmS7+FTkHqyVS CGpQCHNGsjzy99nKMo1/gfMDka25MGBGYzkLQrhVsWKTpdJETdMTZQ1O5nPdt7XUeYLCeKuLqLaZZ zEszg2bvReLtkrfw6qrwAS4QYyFahfv0cZVj+Vh5PiU+Tar/INCoRm4hSDxLOHEK0qIk0eeal3jBD OzbwyIioUfbglA3ckVWGk4W8zcxW8jH+bFJ9mvZ8+RaTHsShPvhrWC9CVIkq99eYS+3ySOmGXKt8H lkxmLW24xaBGSYg+aKFITY/NfVU3W26g0Hd3oVLfN+5GfNNVlZma4eAu4ERJVI6XqdhJSVQb+McqQ X5eseSr1fs00HXsoedjw==; 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 1dBHen-0007dl-QY; Thu, 18 May 2017 09:23:41 +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-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms 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-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=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 },