diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2020-01-19 16:31:55 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-01-20 12:43:24 +0300 |
commit | 2ab1d925aa4c0c179dd1eb492e8c03536972707b (patch) | |
tree | 97ab900ed31d71bc7cfe1a194f19a31d0a7c3de9 /include/linux/phy.h | |
parent | 4262c38dc42e092987f41cb1695240ac7dab86a9 (diff) | |
download | linux-2ab1d925aa4c0c179dd1eb492e8c03536972707b.tar.xz |
net: phy: add generic ndo_do_ioctl handler phy_do_ioctl
A number of network drivers has the same glue code to use phy_mii_ioctl
as ndo_do_ioctl handler. So let's add such a generic ndo_do_ioctl
handler to phylib.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/phy.h')
-rw-r--r-- | include/linux/phy.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h index 99a87f02667f..be6b3a1b03da 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -1242,6 +1242,7 @@ void phy_ethtool_ksettings_get(struct phy_device *phydev, int phy_ethtool_ksettings_set(struct phy_device *phydev, const struct ethtool_link_ksettings *cmd); int phy_mii_ioctl(struct phy_device *phydev, struct ifreq *ifr, int cmd); +int phy_do_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd); void phy_request_interrupt(struct phy_device *phydev); void phy_free_interrupt(struct phy_device *phydev); void phy_print_status(struct phy_device *phydev); |