From: Jakub Kicinski Date: Wed, 26 Jan 2022 19:10:55 +0000 (-0800) Subject: mii: remove mii_lpa_to_linkmode_lpa_sgmii() X-Git-Tag: v6.1-rc5~1746^2~513^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bd5daba2d02479729526d35de85807aadf6fba20;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: David S. Miller --- diff --git a/include/linux/mii.h b/include/linux/mii.h index 12ea29e..b8a1a17 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