diff options
author | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2023-11-15 11:39:23 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-11-16 23:45:04 +0000 |
commit | ba50a8d40258081325db15f5a86cbb301867a3ba (patch) | |
tree | a29a54a20ad8806db53c925d30c27ec027654998 /drivers/net/phy | |
parent | 96fa96e198f9707285003075fbbce7db6a485112 (diff) | |
download | linux-ba50a8d40258081325db15f5a86cbb301867a3ba.tar.gz linux-ba50a8d40258081325db15f5a86cbb301867a3ba.tar.bz2 linux-ba50a8d40258081325db15f5a86cbb301867a3ba.zip |
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>
Diffstat (limited to 'drivers/net/phy')
-rw-r--r-- | drivers/net/phy/phylink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c index 25c19496a336..d2fa949ff1ea 100644 --- a/drivers/net/phy/phylink.c +++ b/drivers/net/phy/phylink.c @@ -805,7 +805,7 @@ static int phylink_parse_fixedlink(struct phylink *pl, phylink_warn(pl, "fixed link specifies half duplex for %dMbps link?\n", pl->link_config.speed); - bitmap_fill(pl->supported, __ETHTOOL_LINK_MODE_MASK_NBITS); + linkmode_fill(pl->supported); linkmode_copy(pl->link_config.advertising, pl->supported); phylink_validate(pl, pl->supported, &pl->link_config); @@ -1640,7 +1640,7 @@ struct phylink *phylink_create(struct phylink_config *config, __set_bit(PHYLINK_DISABLE_STOPPED, &pl->phylink_disable_state); timer_setup(&pl->link_poll, phylink_fixed_poll, 0); - bitmap_fill(pl->supported, __ETHTOOL_LINK_MODE_MASK_NBITS); + linkmode_fill(pl->supported); linkmode_copy(pl->link_config.advertising, pl->supported); phylink_validate(pl, pl->supported, &pl->link_config); |