Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 032f4700 authored by Heiner Kallweit's avatar Heiner Kallweit Committed by David S. Miller
Browse files

phy: use new helpers phy_set_bits/phy_clear_bits in phylib



Use new helpers phy_set_bits / phy_clear_bits in phylib.

Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ac8322d8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1660,13 +1660,13 @@ EXPORT_SYMBOL(genphy_config_init);

int genphy_suspend(struct phy_device *phydev)
{
	return phy_modify(phydev, MII_BMCR, 0, BMCR_PDOWN);
	return phy_set_bits(phydev, MII_BMCR, BMCR_PDOWN);
}
EXPORT_SYMBOL(genphy_suspend);

int genphy_resume(struct phy_device *phydev)
{
	return phy_modify(phydev, MII_BMCR, BMCR_PDOWN, 0);
	return phy_clear_bits(phydev, MII_BMCR, BMCR_PDOWN);
}
EXPORT_SYMBOL(genphy_resume);