]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6b81e73423681fb1d0a37ad7616c28902e444c29
treed428fa797bd1647e033aeaeb0c270090d2e66fcd
parent456bc67c8ce8c0fd6393a7264a279614c490dbc6
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