summaryrefslogtreecommitdiffstats
path: root/include/linux/mii.h
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2022-01-26 11:10:55 -0800
committerDavid S. Miller <davem@davemloft.net>2022-01-27 13:53:26 +0000
commitbd5daba2d02479729526d35de85807aadf6fba20 (patch)
tree83dd1d6207a90444cc51c0f895dc9835f094e335 /include/linux/mii.h
parentd9f393f468aa939b53cc81b43169953ce37d7cdb (diff)
downloadlinux-bd5daba2d02479729526d35de85807aadf6fba20.tar.gz
linux-bd5daba2d02479729526d35de85807aadf6fba20.tar.bz2
linux-bd5daba2d02479729526d35de85807aadf6fba20.zip
mii: remove mii_lpa_to_linkmode_lpa_sgmii()
The only caller of mii_lpa_to_linkmode_lpa_sgmii() disappeared in v5.10. Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/mii.h')
-rw-r--r--include/linux/mii.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/include/linux/mii.h b/include/linux/mii.h
index 12ea29e04293..b8a1a17a87dd 100644
--- a/include/linux/mii.h
+++ b/include/linux/mii.h
@@ -388,23 +388,6 @@ mii_lpa_mod_linkmode_lpa_sgmii(unsigned long *lp_advertising, u32 lpa)
}
/**
- * mii_lpa_to_linkmode_adv_sgmii
- * @advertising: pointer to destination link mode.
- * @lpa: value of the MII_LPA register
- *
- * A small helper function that translates MII_ADVERTISE bits
- * to linkmode advertisement settings when in SGMII mode.
- * Clears the old value of advertising.
- */
-static inline void mii_lpa_to_linkmode_lpa_sgmii(unsigned long *lp_advertising,
- u32 lpa)
-{
- linkmode_zero(lp_advertising);
-
- mii_lpa_mod_linkmode_lpa_sgmii(lp_advertising, lpa);
-}
-
-/**
* mii_adv_mod_linkmode_adv_t
* @advertising:pointer to destination link mode.
* @adv: value of the MII_ADVERTISE register