Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: phy: fixed_phy: remove member no_carrier from struct fixed_phy

After the recent removal of gpio support member no_carrier isn't
needed any longer.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Heiner Kallweit and committed by
Jakub Kicinski
0625b3bf fecf7087

+1 -4
+1 -4
drivers/net/phy/fixed_phy.c
··· 32 32 int addr; 33 33 struct phy_device *phydev; 34 34 struct fixed_phy_status status; 35 - bool no_carrier; 36 35 int (*link_update)(struct net_device *, struct fixed_phy_status *); 37 36 struct list_head node; 38 37 }; ··· 51 52 52 53 list_for_each_entry(fp, &fmb->phys, node) { 53 54 if (fp->addr == phydev->mdio.addr) { 54 - fp->no_carrier = !new_carrier; 55 + fp->status.link = new_carrier; 55 56 return 0; 56 57 } 57 58 } ··· 66 67 67 68 list_for_each_entry(fp, &fmb->phys, node) { 68 69 if (fp->addr == phy_addr) { 69 - fp->status.link = !fp->no_carrier; 70 - 71 70 /* Issue callback if user registered it. */ 72 71 if (fp->link_update) 73 72 fp->link_update(fp->phydev->attached_dev,