From: Heiner Kallweit Subject: [PATCH net-next 2/2] phy: use new helpers phy_set_bits/phy_clear_bits in phylib Date: Fri, 12 Jan 2018 21:20:36 +0100 Message-ID: References: <789ef45a-9b82-cdfb-6d41-ead99d013441@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: "netdev@vger.kernel.org" To: Andrew Lunn , Florian Fainelli , David Miller Return-path: Received: from mail-wm0-f66.google.com ([74.125.82.66]:46837 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754607AbeALUUp (ORCPT ); Fri, 12 Jan 2018 15:20:45 -0500 Received: by mail-wm0-f66.google.com with SMTP id 143so14312288wma.5 for ; Fri, 12 Jan 2018 12:20:44 -0800 (PST) In-Reply-To: <789ef45a-9b82-cdfb-6d41-ead99d013441@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: Use new helpers phy_set_bits / phy_clear_bits in phylib. Signed-off-by: Heiner Kallweit --- drivers/net/phy/phy_device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c index 6bd11a070..b13eed21c 100644 --- a/drivers/net/phy/phy_device.c +++ b/drivers/net/phy/phy_device.c @@ -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); -- 2.15.1