Skip to content

Commit

Permalink
net: phy: marvell10g: Use linkmode_set_bit helper instead of __set_bit
Browse files Browse the repository at this point in the history
Cosmetic patch making use of helpers dedicated to linkmodes handling.

Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Maxime Chevallier authored and David S. Miller committed Feb 25, 2019
1 parent 7414542 commit 0feaccd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/phy/marvell10g.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ static int mv3310_get_features(struct phy_device *phydev)
return val;

if (val & MDIO_AN_STAT1_ABLE)
__set_bit(ETHTOOL_LINK_MODE_Autoneg_BIT,
phydev->supported);
linkmode_set_bit(ETHTOOL_LINK_MODE_Autoneg_BIT,
phydev->supported);
}

ret = genphy_c45_pma_read_abilities(phydev);
Expand Down

0 comments on commit 0feaccd

Please sign in to comment.