]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: simplify phy_link_change arguments
authorDoug Berger <opendmb@gmail.com>
Mon, 18 May 2020 22:23:59 +0000 (15:23 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 May 2020 23:54:00 +0000 (16:54 -0700)
commit926d82b0330e44ee44c7850602be1e3f8711aef3
tree4ad32410311fa62c3642c89701243bbf8616c3c6
parent6f8ece06498c0aa42463f451dce5cbc44aa62679
net: phy: simplify phy_link_change arguments

This function was introduced to allow for different handling of
link up and link down events particularly with regard to the
netif_carrier. The third argument do_carrier allowed the flag to
be left unchanged.

Since then the phylink has introduced an implementation that
completely ignores the third parameter since it never wants to
change the flag and the phylib always sets the third parameter
to true so the flag is always changed.

Therefore the third argument (i.e. do_carrier) is no longer
necessary and can be removed. This also means that the phylib
phy_link_down() function no longer needs its second argument.

Signed-off-by: Doug Berger <opendmb@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy.c
drivers/net/phy/phy_device.c
drivers/net/phy/phylink.c
include/linux/phy.h