]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: hifemac: make some functions static
authorYang Xiwen <forbidden405@outlook.com>
Mon, 22 Jan 2024 14:33:24 +0000 (22:33 +0800)
committerTom Rini <trini@konsulko.com>
Tue, 26 Mar 2024 23:58:26 +0000 (19:58 -0400)
They are not required to be global, make them static.

Signed-off-by: Yang Xiwen <forbidden405@outlook.com>
drivers/net/hifemac.c

index d24023eefd1dbc5562fcff77d147ca6e34299187..90cc247b3b6c40064f59e7790372ee0873c36a89 100644 (file)
@@ -418,7 +418,7 @@ static void hisi_femac_get_stats(struct udevice *dev, u64 *data)
        }
 }
 
-int hisi_femac_of_to_plat(struct udevice *dev)
+static int hisi_femac_of_to_plat(struct udevice *dev)
 {
        int ret, i;
        struct hisi_femac_priv *priv = dev_get_priv(dev);
@@ -553,7 +553,7 @@ static int hisi_femac_phy_reset(struct hisi_femac_priv *priv)
        return 0;
 }
 
-int hisi_femac_probe(struct udevice *dev)
+static int hisi_femac_probe(struct udevice *dev)
 {
        struct hisi_femac_priv *priv = dev_get_priv(dev);
        int ret, i;