From: Heiner Kallweit Date: Tue, 10 Jun 2025 20:58:15 +0000 (+0200) Subject: net: usb: lan78xx: make struct fphy_status static const X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ae4e3334dd057943b3d6922861a9117af88dc266;p=thirdparty%2Flinux.git net: usb: lan78xx: make struct fphy_status static const Constify variable fphy_status and make it static. Signed-off-by: Heiner Kallweit Link: https://patch.msgid.link/0890f92e-a03d-4aa7-8bc8-94123d253f22@gmail.com Signed-off-by: Jakub Kicinski --- diff --git a/drivers/net/usb/lan78xx.c b/drivers/net/usb/lan78xx.c index 759dab980a09a..17c23eada645f 100644 --- a/drivers/net/usb/lan78xx.c +++ b/drivers/net/usb/lan78xx.c @@ -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,