]> www.infradead.org Git - users/hch/misc.git/commitdiff
net: phy: fixed_phy: remove two function stubs
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 10 Sep 2025 20:42:47 +0000 (22:42 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 12 Sep 2025 00:19:40 +0000 (17:19 -0700)
Remove stubs for fixed_phy_set_link_update() and
fixed_phy_change_carrier() because all callers
(actually just one per function) select config
symbol FIXED_PHY.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://patch.msgid.link/8729170d-cf39-48d9-aabc-c9aa4acda070@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/phy_fixed.h

index 6227a1bdefecede5459bbf6d99050b0ad9bfcb06..d17ff750c70820b191538f38f45bcd96b2c5afea 100644 (file)
@@ -37,16 +37,6 @@ fixed_phy_register(const struct fixed_phy_status *status,
 static inline void fixed_phy_unregister(struct phy_device *phydev)
 {
 }
-static inline int fixed_phy_set_link_update(struct phy_device *phydev,
-                       int (*link_update)(struct net_device *,
-                                          struct fixed_phy_status *))
-{
-       return -ENODEV;
-}
-static inline int fixed_phy_change_carrier(struct net_device *dev, bool new_carrier)
-{
-       return -EINVAL;
-}
 #endif /* CONFIG_FIXED_PHY */
 
 #endif /* __PHY_FIXED_H */