Skip to content

Commit

Permalink
drivers: net: convert to boolean for the mac_managed_pm flag
Browse files Browse the repository at this point in the history
Signed-off-by: Dennis Kirjanov <dkirjanov@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Denis Kirjanov authored and David S. Miller committed Oct 31, 2022
1 parent 8fc4dea commit eca485d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/freescale/fec_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2169,7 +2169,7 @@ static int fec_enet_mii_probe(struct net_device *ndev)
fep->link = 0;
fep->full_duplex = 0;

phy_dev->mac_managed_pm = 1;
phy_dev->mac_managed_pm = true;

phy_attached_info(phy_dev);

Expand Down
2 changes: 1 addition & 1 deletion drivers/net/ethernet/realtek/r8169_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -5018,7 +5018,7 @@ static int r8169_mdio_register(struct rtl8169_private *tp)
return -EUNATCH;
}

tp->phydev->mac_managed_pm = 1;
tp->phydev->mac_managed_pm = true;

phy_support_asym_pause(tp->phydev);

Expand Down
4 changes: 2 additions & 2 deletions drivers/net/usb/asix_devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ static int ax88772_init_phy(struct usbnet *dev)
}

phy_suspend(priv->phydev);
priv->phydev->mac_managed_pm = 1;
priv->phydev->mac_managed_pm = true;

phy_attached_info(priv->phydev);

Expand All @@ -720,7 +720,7 @@ static int ax88772_init_phy(struct usbnet *dev)
return -ENODEV;
}

priv->phydev_int->mac_managed_pm = 1;
priv->phydev_int->mac_managed_pm = true;
phy_suspend(priv->phydev_int);

return 0;
Expand Down

0 comments on commit eca485d

Please sign in to comment.