Skip to content

Commit ba50a8d

Browse files
Russell King (Oracle)davem330
authored andcommitted
net: phylink: use linkmode_fill()
Use linkmode_fill() rather than open coding the bitmap operation. Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 96fa96e commit ba50a8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/phy/phylink.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ static int phylink_parse_fixedlink(struct phylink *pl,
805805
phylink_warn(pl, "fixed link specifies half duplex for %dMbps link?\n",
806806
pl->link_config.speed);
807807

808-
bitmap_fill(pl->supported, __ETHTOOL_LINK_MODE_MASK_NBITS);
808+
linkmode_fill(pl->supported);
809809
linkmode_copy(pl->link_config.advertising, pl->supported);
810810
phylink_validate(pl, pl->supported, &pl->link_config);
811811

@@ -1640,7 +1640,7 @@ struct phylink *phylink_create(struct phylink_config *config,
16401640
__set_bit(PHYLINK_DISABLE_STOPPED, &pl->phylink_disable_state);
16411641
timer_setup(&pl->link_poll, phylink_fixed_poll, 0);
16421642

1643-
bitmap_fill(pl->supported, __ETHTOOL_LINK_MODE_MASK_NBITS);
1643+
linkmode_fill(pl->supported);
16441644
linkmode_copy(pl->link_config.advertising, pl->supported);
16451645
phylink_validate(pl, pl->supported, &pl->link_config);
16461646

0 commit comments

Comments
 (0)