Commit 0feaccd5 authored by Maxime Chevallier's avatar Maxime Chevallier Committed by David S. Miller

net: phy: marvell10g: Use linkmode_set_bit helper instead of __set_bit

Cosmetic patch making use of helpers dedicated to linkmodes handling.
Signed-off-by: default avatarMaxime Chevallier <maxime.chevallier@bootlin.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 74145424
...@@ -253,7 +253,7 @@ static int mv3310_get_features(struct phy_device *phydev) ...@@ -253,7 +253,7 @@ static int mv3310_get_features(struct phy_device *phydev)
return val; return val;
if (val & MDIO_AN_STAT1_ABLE) if (val & MDIO_AN_STAT1_ABLE)
__set_bit(ETHTOOL_LINK_MODE_Autoneg_BIT, linkmode_set_bit(ETHTOOL_LINK_MODE_Autoneg_BIT,
phydev->supported); phydev->supported);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment