summaryrefslogtreecommitdiff
path: root/include/phy.h
diff options
context:
space:
mode:
authorMarek BehĂșn <marek.behun@nic.cz>2022-04-07 00:33:06 +0200
committerRamon Fried <ramon@neureality.ai>2022-04-10 08:44:13 +0300
commit79bef5fb1f0ce6b090017d2525a42f94e1577673 (patch)
tree9c23ac505b5d1887fb5aed5eb66e90710ada2aa1 /include/phy.h
parentf961b3abf88d2922e064a0b83525929aab917f1f (diff)
net: phy: use ->is_c45 instead of is_10g_interface()
Use phydev->is_c45 instead of is_10g_interface(phydev->interface) to determine whether clause 45 protocol should be used. Signed-off-by: Marek BehĂșn <marek.behun@nic.cz> Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Diffstat (limited to 'include/phy.h')
-rw-r--r--include/phy.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/include/phy.h b/include/phy.h
index 399e050aba..c7fa0ffba4 100644
--- a/include/phy.h
+++ b/include/phy.h
@@ -359,18 +359,6 @@ static inline int phy_clear_bits_mmd(struct phy_device *phydev, int devad,
#ifdef CONFIG_PHYLIB_10G
extern struct phy_driver gen10g_driver;
-
-/*
- * List all 10G interfaces here, the assumption being that PHYs on these
- * interfaces are C45
- */
-static inline int is_10g_interface(phy_interface_t interface)
-{
- return interface == PHY_INTERFACE_MODE_XGMII ||
- interface == PHY_INTERFACE_MODE_USXGMII ||
- interface == PHY_INTERFACE_MODE_10GBASER;
-}
-
#endif
/**