diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2020-01-29 13:22:46 +0000 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2020-04-16 23:03:53 +0100 |
commit | 5d8183ab9655514acc7710c2324031b4669b0417 (patch) | |
tree | 1ac9e1cae1439fc2a60c5a4c5b0d7127e90a09a5 /include | |
parent | 48bd6083efcd1277fa414d6a7eb1759fe420e733 (diff) |
net: phylink, dsa: eliminate phylink_fixed_state_cb()
Move the callback into the phylink_config structure, rather than
providing a callback to set this up.
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/phylink.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/phylink.h b/include/linux/phylink.h index 1dc0e265339f..bd8dbcc834f1 100644 --- a/include/linux/phylink.h +++ b/include/linux/phylink.h @@ -67,6 +67,9 @@ struct phylink_config { struct device *dev; enum phylink_op_type type; bool pcs_poll; + bool poll_fixed_state; + void (*get_fixed_state)(struct phylink_config *config, + struct phylink_link_state *state); DECLARE_PHY_INTERFACE_MASK(supported_interfaces); }; @@ -367,9 +370,6 @@ void phylink_destroy(struct phylink *); int phylink_connect_phy(struct phylink *, struct phy_device *); int phylink_of_phy_connect(struct phylink *, struct device_node *, u32 flags); void phylink_disconnect_phy(struct phylink *); -int phylink_fixed_state_cb(struct phylink *, - void (*cb)(struct net_device *dev, - struct phylink_link_state *)); void phylink_mac_change(struct phylink *, bool up); |