net: sfp: use linkmode_*() rather than open coding
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Wed, 15 Nov 2023 11:39:28 +0000 (11:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 Nov 2023 23:45:04 +0000 (23:45 +0000)
commit466b97b1871a49c272757f7527db2f85ea6338b4
treefae704a03bfd4c3da3c7c462d4fea7efd1de23e4
parentba50a8d40258081325db15f5a86cbb301867a3ba
net: sfp: use linkmode_*() rather than open coding

Use the linkmode_*() helpers rather than open coding the calls to the
bitmap operators.

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>
drivers/net/phy/sfp-bus.c