c61b5f6fffca676fb8a407c46b463592fbcf97e2
[openwrt/openwrt.git] / target / linux / realtek / patches-5.4 / 703-include-linux-add-phy-ops-for-rtl838x.patch
1 --- a/include/linux/phy.h
2 +++ b/include/linux/phy.h
3 @@ -650,6 +650,10 @@ struct phy_driver {
4 struct ethtool_tunable *tuna,
5 const void *data);
6 int (*set_loopback)(struct phy_device *dev, bool enable);
7 + int (*get_port)(struct phy_device *dev);
8 + int (*set_port)(struct phy_device *dev, int port);
9 + int (*get_eee)(struct phy_device *dev, struct ethtool_eee *e);
10 + int (*set_eee)(struct phy_device *dev, struct ethtool_eee *e);
11 };
12 #define to_phy_driver(d) container_of(to_mdio_common_driver(d), \
13 struct phy_driver, mdiodrv)