]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
net: usb: lan78xx: make struct fphy_status static const
authorHeiner Kallweit <hkallweit1@gmail.com>
Tue, 10 Jun 2025 20:58:15 +0000 (22:58 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 11 Jun 2025 21:13:12 +0000 (14:13 -0700)
Constify variable fphy_status and make it static.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://patch.msgid.link/0890f92e-a03d-4aa7-8bc8-94123d253f22@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/usb/lan78xx.c

index 759dab980a09aea9d49e9796ba2d20bcc1299b84..17c23eada645fa70c5444cde0fd5a265f9c824a2 100644 (file)
@@ -2630,7 +2630,7 @@ static int lan78xx_configure_flowcontrol(struct lan78xx_net *dev,
  */
 static struct phy_device *lan78xx_register_fixed_phy(struct lan78xx_net *dev)
 {
-       struct fixed_phy_status fphy_status = {
+       static const struct fixed_phy_status fphy_status = {
                .link = 1,
                .speed = SPEED_1000,
                .duplex = DUPLEX_FULL,