]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
phy: rockchip-typec: Make usb3_pll_cfg and dp_pll_cfg static
authorYueHaibing <yuehaibing@huawei.com>
Tue, 19 Mar 2019 15:30:28 +0000 (23:30 +0800)
committerKishon Vijay Abraham I <kishon@ti.com>
Wed, 17 Apr 2019 04:59:49 +0000 (10:29 +0530)
Fix sparse warning:

drivers/phy/rockchip/phy-rockchip-typec.c:403:16: warning: symbol 'usb3_pll_cfg' was not declared. Should it be static?
drivers/phy/rockchip/phy-rockchip-typec.c:420:16: warning: symbol 'dp_pll_cfg' was not declared. Should it be static?

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/rockchip/phy-rockchip-typec.c

index e32edeebcd63fa7a9336abf22fd1541eb66aaefc..8ad366ee6adae4dc1580b9850cd8b173728da4b7 100644 (file)
@@ -400,7 +400,7 @@ struct phy_reg {
        u32 addr;
 };
 
-struct phy_reg usb3_pll_cfg[] = {
+static struct phy_reg usb3_pll_cfg[] = {
        { 0xf0,         CMN_PLL0_VCOCAL_INIT },
        { 0x18,         CMN_PLL0_VCOCAL_ITER },
        { 0xd0,         CMN_PLL0_INTDIV },
@@ -417,7 +417,7 @@ struct phy_reg usb3_pll_cfg[] = {
        { 0x8,          CMN_DIAG_PLL0_LF_PROG },
 };
 
-struct phy_reg dp_pll_cfg[] = {
+static struct phy_reg dp_pll_cfg[] = {
        { 0xf0,         CMN_PLL1_VCOCAL_INIT },
        { 0x18,         CMN_PLL1_VCOCAL_ITER },
        { 0x30b9,       CMN_PLL1_VCOCAL_START },