]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: broadcom: Remove unused flags
authorFlorian Fainelli <f.fainelli@gmail.com>
Sat, 13 Feb 2021 03:46:31 +0000 (19:46 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Feb 2021 23:15:25 +0000 (15:15 -0800)
commit7910fda938c3fb8c370778838ee479ced213e3ad
tree7944915bf6336f511a559569ed18551467db43c2
parent4712bfe569eb550739dc419a3183bf1bdf18bd2b
net: phy: broadcom: Remove unused flags

We have a number of unused flags defined today and since we are scarce
on space and may need to introduce new flags in the future remove and
shift every existing flag down into a contiguous assignment.
PHY_BCM_FLAGS_MODE_1000BX was only used internally for the BCM54616S
PHY, so we allocate a driver private structure instead to store that
flag instead of canibalizing one from phydev->dev_flags for that
purpose.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/broadcom.c
include/linux/brcmphy.h