diff options
author | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2024-10-04 11:20:56 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-10-09 12:13:11 +0100 |
commit | f042365a26b07006064c2cfa2293e16cad243b0d (patch) | |
tree | 93d3ef774d231b91ae3c7e9d38d5c72350ace946 /include | |
parent | 4490f5669b067359cf149ce1acf5b19c38a5edad (diff) |
net: pcs: xpcs: provide a helper to get the phylink pcs given xpcs
Provide a helper to provide the pointer to the phylink_pcs struct
given a valid xpcs pointer. This will be necessary when we make
struct dw_xpcs private to pcs-xpcs.c
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/pcs/pcs-xpcs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/pcs/pcs-xpcs.h b/include/linux/pcs/pcs-xpcs.h index abda475111d1..868515f3cc88 100644 --- a/include/linux/pcs/pcs-xpcs.h +++ b/include/linux/pcs/pcs-xpcs.h @@ -64,6 +64,7 @@ struct dw_xpcs { bool need_reset; }; +struct phylink_pcs *xpcs_to_phylink_pcs(struct dw_xpcs *xpcs); int xpcs_get_an_mode(struct dw_xpcs *xpcs, phy_interface_t interface); void xpcs_get_interfaces(struct dw_xpcs *xpcs, unsigned long *interfaces); int xpcs_config_eee(struct dw_xpcs *xpcs, int mult_fact_100ns, |