Skip to content
Permalink
Browse files
net: phy: Remove module_info member from phy driver
This op was intended to be used by PHY drivers to allow access to SFP
module information. It is currently unused, so remove it. This should
help with the conversion to a more generic API which allows user space
to request specific pages from the SFP.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
  • Loading branch information
lunn committed Nov 29, 2020
1 parent e71d2b9 commit fcc924a183b34a15eec0a4b76fbbf86178a02d19
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
@@ -816,13 +816,6 @@ struct phy_driver {
/** @write_page: Set the current PHY register page number */
int (*write_page)(struct phy_device *dev, int page);

/**
* @module_info: Get the size and type of the eeprom contained
* within a plug-in module
*/
int (*module_info)(struct phy_device *dev,
struct ethtool_modinfo *modinfo);

/**
* @module_eeprom: Get the eeprom information from the plug-in
* module
@@ -2185,9 +2185,6 @@ static int __ethtool_get_module_info(struct net_device *dev,
if (dev->sfp_bus)
return sfp_get_module_info(dev->sfp_bus, modinfo);

if (phydev && phydev->drv && phydev->drv->module_info)
return phydev->drv->module_info(phydev, modinfo);

if (ops->get_module_info)
return ops->get_module_info(dev, modinfo);

0 comments on commit fcc924a

Please sign in to comment.