Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: phy: fixed_phy: remove two function stubs

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>

authored by

Heiner Kallweit and committed by
Jakub Kicinski
5f790208 5adf6f2b

-10
-10
include/linux/phy_fixed.h
··· 37 37 static inline void fixed_phy_unregister(struct phy_device *phydev) 38 38 { 39 39 } 40 - static inline int fixed_phy_set_link_update(struct phy_device *phydev, 41 - int (*link_update)(struct net_device *, 42 - struct fixed_phy_status *)) 43 - { 44 - return -ENODEV; 45 - } 46 - static inline int fixed_phy_change_carrier(struct net_device *dev, bool new_carrier) 47 - { 48 - return -EINVAL; 49 - } 50 40 #endif /* CONFIG_FIXED_PHY */ 51 41 52 42 #endif /* __PHY_FIXED_H */