[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <08d52675-f308-4ebb-4ec4-f6c7ac0b6b06@gmail.com>
Date: Wed, 7 Nov 2018 21:52:31 +0100
From: Heiner Kallweit <hkallweit1@...il.com>
To: Florian Fainelli <f.fainelli@...il.com>,
Andrew Lunn <andrew@...n.ch>,
David Miller <davem@...emloft.net>
Cc: "netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: [PATCH net-next 0/2] net: phy: use phy_id_mask value zero for exact
match
A phy_id_mask value zero means every PHYID matches, therefore
value zero isn't used. So we can safely redefine the semantics
of value zero to mean "exact match". This allows to avoid some
boilerplate code in PHY driver configs.
Realtek PHY driver is the first user of this change.
Heiner Kallweit (2):
net: phy: use phy_id_mask value zero for exact match
net: phy: realtek: remove boilerplate code from PHY driver definitions
drivers/net/phy/phy_device.c | 21 +++++++++++++++------
drivers/net/phy/realtek.c | 9 ---------
include/linux/phy.h | 2 +-
3 files changed, 16 insertions(+), 16 deletions(-)
--
2.19.1
Powered by blists - more mailing lists