diff options
author | Weijie Gao <weijie.gao@mediatek.com> | 2023-07-19 17:17:07 +0800 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-08-03 09:40:50 -0400 |
commit | 159458d32c6ef476fc4c42c43eeeaa3923879aa9 (patch) | |
tree | 998b12d27d4c8f8ec0e51c1f817d88a2e7bda5f4 /drivers/net | |
parent | c94ad0091714602b8dcff24763f80600a72bc8d1 (diff) | |
download | u-boot-159458d32c6ef476fc4c42c43eeeaa3923879aa9.tar.gz u-boot-159458d32c6ef476fc4c42c43eeeaa3923879aa9.tar.bz2 u-boot-159458d32c6ef476fc4c42c43eeeaa3923879aa9.zip |
net: mediatek: add missing static qualifier
mt7531_mmd_ind_read and mt753x_switch_init are defined without static.
Since they're not used outside this file, we should add them back.
Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
fixup to add static qualifier
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/mtk_eth.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/mtk_eth.c b/drivers/net/mtk_eth.c index 61a1c29e36..2b4a862695 100644 --- a/drivers/net/mtk_eth.c +++ b/drivers/net/mtk_eth.c @@ -436,7 +436,8 @@ static int mt7531_mii_ind_write(struct mtk_eth_priv *priv, u8 phy, u8 reg, MDIO_ST_C22); } -int mt7531_mmd_ind_read(struct mtk_eth_priv *priv, u8 addr, u8 devad, u16 reg) +static int mt7531_mmd_ind_read(struct mtk_eth_priv *priv, u8 addr, u8 devad, + u16 reg) { u8 phy_addr; int ret; @@ -934,7 +935,7 @@ static int mt7531_setup(struct mtk_eth_priv *priv) return 0; } -int mt753x_switch_init(struct mtk_eth_priv *priv) +static int mt753x_switch_init(struct mtk_eth_priv *priv) { int ret; int i; |