From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiner Kallweit Subject: [PATCH net-next] net: phy: convert further flags in struct phy_device to bit-field Date: Thu, 24 May 2018 22:15:59 +0200 Message-ID: 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-wr0-f196.google.com ([209.85.128.196]:46055 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S971396AbeEXUQI (ORCPT ); Thu, 24 May 2018 16:16:08 -0400 Received: by mail-wr0-f196.google.com with SMTP id w3-v6so5321738wrl.12 for ; Thu, 24 May 2018 13:16:07 -0700 (PDT) Sender: netdev-owner@vger.kernel.org List-ID: This patch is a follow-up to 87e5808d52b6 ("net: phy: replace bool members in struct phy_device with bit-fields") and converts further flags to bit-fields. Signed-off-by: Heiner Kallweit --- include/linux/phy.h | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/include/linux/phy.h b/include/linux/phy.h index 6cd090984..cc66f2834 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -418,21 +418,20 @@ struct phy_device { /* The most recently read link state */ unsigned link:1; + /* forced speed & duplex (no autoneg) + * partner speed & duplex & pause (autoneg) + */ + unsigned pause:1; + unsigned asym_pause:1; + int speed; + int duplex; + enum phy_state state; u32 dev_flags; phy_interface_t interface; - /* - * forced speed & duplex (no autoneg) - * partner speed & duplex & pause (autoneg) - */ - int speed; - int duplex; - int pause; - int asym_pause; - /* Enabled Interrupts */ u32 interrupts; -- 2.17.0