diff options
Diffstat (limited to 'include/linux/phy_fixed.h')
| -rw-r--r-- | include/linux/phy_fixed.h | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/include/linux/phy_fixed.h b/include/linux/phy_fixed.h index ee54453a40a0..9525567b1951 100644 --- a/include/linux/phy_fixed.h +++ b/include/linux/phy_fixed.h @@ -13,6 +13,7 @@ struct fixed_phy_status {  struct device_node;  #if IS_ENABLED(CONFIG_FIXED_PHY) +extern int fixed_phy_change_carrier(struct net_device *dev, bool new_carrier);  extern int fixed_phy_add(unsigned int irq, int phy_id,  			 struct fixed_phy_status *status,  			 int link_gpio); @@ -47,6 +48,10 @@ static inline int fixed_phy_set_link_update(struct phy_device *phydev,  {  	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 */ | 
