net: phylink: Export phylink_caps_to_linkmodes
authorSean Anderson <sean.anderson@seco.com>
Tue, 20 Sep 2022 22:12:29 +0000 (18:12 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Sep 2022 10:55:35 +0000 (11:55 +0100)
commit606116529ab2d12e93bf751f74ed50a621b46846
treed428fa797bd1647e033aeaeb0c270090d2e66fcd
parent72bc36956f73ac54f19a7ac7302fb274069bec18
net: phylink: Export phylink_caps_to_linkmodes

This function is convenient for MAC drivers. They can use it to add or
remove particular link modes based on capabilities (such as if half
duplex is not supported for a particular interface mode).

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phylink.c
include/linux/phylink.h