net: mii: convert mii_lpa_to_ethtool_lpa_x() to linkmode variant
authorRussell King <rmk+kernel@armlinux.org.uk>
Sat, 14 Mar 2020 10:09:53 +0000 (10:09 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Mar 2020 00:10:14 +0000 (17:10 -0700)
commitf6554187855a4ddce235d22cc1486c118846b592
tree3518e134bb1f794c2a6ebb61aaed52181301c3bd
parent5d0ab06b63fc9c727a7bb72c81321c0114be540b
net: mii: convert mii_lpa_to_ethtool_lpa_x() to linkmode variant

Add a LPA to linkmode decoder for 1000BASE-X protocols; this decoder
only provides the modify semantics similar to other such decoders.
This replaces the unused mii_lpa_to_ethtool_lpa_x() helper.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/mii.h