]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: phy: cortina: Staticize PHY driver entries
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sun, 19 Mar 2023 17:02:39 +0000 (18:02 +0100)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Fri, 7 Apr 2023 12:18:48 +0000 (14:18 +0200)
These struct phy_driver ... instances are local to this source code
file, staticize them. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Acked-by: Michal Simek <michal.simek@amd.com>
Tested-by: Michal Simek <michal.simek@amd.com> #microblaze (MANUAL_RELOC)
drivers/net/phy/cortina.c

index 778d93e609cd482ee63a536b765a48bae6ba10ca..df5a73d6112c9bf6caf98044b45dbbfd648b88df 100644 (file)
@@ -382,7 +382,7 @@ int cs4223_startup(struct phy_device *phydev)
        return 0;
 }
 
-struct phy_driver cs4340_driver = {
+static struct phy_driver cs4340_driver = {
        .name = "Cortina CS4315/CS4340",
        .uid = PHY_UID_CS4340,
        .mask = 0xfffffff0,
@@ -396,7 +396,7 @@ struct phy_driver cs4340_driver = {
        .shutdown = &gen10g_shutdown,
 };
 
-struct phy_driver cs4223_driver = {
+static struct phy_driver cs4223_driver = {
        .name = "Cortina CS4223",
        .uid = PHY_UID_CS4223,
        .mask = 0x0ffff00f,