]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: phy: aquantia: Staticize PHY driver entries
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sun, 19 Mar 2023 17:02:37 +0000 (18:02 +0100)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Fri, 7 Apr 2023 12:15:07 +0000 (14:15 +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)
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
drivers/net/phy/aquantia.c

index 8eb6024829d8e07d4b64c9b18a245022a68dd34b..fa887ade0c261095260b4bc52829277da9106c07 100644 (file)
@@ -598,7 +598,7 @@ int aquantia_startup(struct phy_device *phydev)
        return 0;
 }
 
-struct phy_driver aq1202_driver = {
+static struct phy_driver aq1202_driver = {
        .name = "Aquantia AQ1202",
        .uid = 0x3a1b445,
        .mask = 0xfffffff0,
@@ -611,7 +611,7 @@ struct phy_driver aq1202_driver = {
        .shutdown = &gen10g_shutdown,
 };
 
-struct phy_driver aq2104_driver = {
+static struct phy_driver aq2104_driver = {
        .name = "Aquantia AQ2104",
        .uid = 0x3a1b460,
        .mask = 0xfffffff0,
@@ -624,7 +624,7 @@ struct phy_driver aq2104_driver = {
        .shutdown = &gen10g_shutdown,
 };
 
-struct phy_driver aqr105_driver = {
+static struct phy_driver aqr105_driver = {
        .name = "Aquantia AQR105",
        .uid = 0x3a1b4a2,
        .mask = 0xfffffff0,
@@ -638,7 +638,7 @@ struct phy_driver aqr105_driver = {
        .data = AQUANTIA_GEN1,
 };
 
-struct phy_driver aqr106_driver = {
+static struct phy_driver aqr106_driver = {
        .name = "Aquantia AQR106",
        .uid = 0x3a1b4d0,
        .mask = 0xfffffff0,
@@ -651,7 +651,7 @@ struct phy_driver aqr106_driver = {
        .shutdown = &gen10g_shutdown,
 };
 
-struct phy_driver aqr107_driver = {
+static struct phy_driver aqr107_driver = {
        .name = "Aquantia AQR107",
        .uid = 0x3a1b4e0,
        .mask = 0xfffffff0,
@@ -665,7 +665,7 @@ struct phy_driver aqr107_driver = {
        .data = AQUANTIA_GEN2,
 };
 
-struct phy_driver aqr112_driver = {
+static struct phy_driver aqr112_driver = {
        .name = "Aquantia AQR112",
        .uid = 0x3a1b660,
        .mask = 0xfffffff0,
@@ -679,7 +679,7 @@ struct phy_driver aqr112_driver = {
        .data = AQUANTIA_GEN3,
 };
 
-struct phy_driver aqr113c_driver = {
+static struct phy_driver aqr113c_driver = {
        .name = "Aquantia AQR113C",
        .uid = 0x31c31c12,
        .mask = 0xfffffff0,
@@ -693,7 +693,7 @@ struct phy_driver aqr113c_driver = {
        .data = AQUANTIA_GEN3,
 };
 
-struct phy_driver aqr405_driver = {
+static struct phy_driver aqr405_driver = {
        .name = "Aquantia AQR405",
        .uid = 0x3a1b4b2,
        .mask = 0xfffffff0,
@@ -707,7 +707,7 @@ struct phy_driver aqr405_driver = {
        .data = AQUANTIA_GEN1,
 };
 
-struct phy_driver aqr412_driver = {
+static struct phy_driver aqr412_driver = {
        .name = "Aquantia AQR412",
        .uid = 0x3a1b710,
        .mask = 0xfffffff0,