]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: Make use of linkmode_mod_bit helper
authorFuqian Huang <huangfq.daxian@gmail.com>
Mon, 8 Jul 2019 12:34:17 +0000 (20:34 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Jul 2019 03:10:34 +0000 (20:10 -0700)
commitcaff1f772ab3c2148c994c88f4d36e272f83deb7
treed75b3dad06834d5c433a0ab583380de2bef8827f
parent02bfc99e9f9444f661f30db87d4b5731b4f81852
net: phy: Make use of linkmode_mod_bit helper

linkmode_mod_bit is introduced as a helper function to set/clear
bits in a linkmode.
Replace the if else code structure with a call to the helper
linkmode_mod_bit.

Signed-off-by: Fuqian Huang <huangfq.daxian@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy.c