aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/phy/broadcom.c
diff options
context:
space:
mode:
authorMatt Carlson <mcarlson@broadcom.com>2010-02-17 10:17:04 -0500
committerDavid S. Miller <davem@davemloft.net>2010-02-17 20:27:40 -0500
commit6a443a0f72ad7706345412dbd2e4d4981fdfce39 (patch)
treee0e9724789c0bf2e232bae18080147834e58da50 /drivers/net/phy/broadcom.c
parent79eb6904361fe4e54e589919a9b62c5e036c42c3 (diff)
tg3: Push phylib definitions to phylib
This patch pushes phylib definitions out to phylib headers. For phy IDs, this removes some code duplication. Signed-off-by: Matt Carlson <mcarlson@broadcom.com> Reviewed-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/broadcom.c')
-rw-r--r--drivers/net/phy/broadcom.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/phy/broadcom.c b/drivers/net/phy/broadcom.c
index 33c4b12a63ba..f482fc4f8cf1 100644
--- a/drivers/net/phy/broadcom.c
+++ b/drivers/net/phy/broadcom.c
@@ -18,9 +18,6 @@
18#include <linux/phy.h> 18#include <linux/phy.h>
19#include <linux/brcmphy.h> 19#include <linux/brcmphy.h>
20 20
21#define PHY_ID_BCM50610 0x0143bd60
22#define PHY_ID_BCM50610M 0x0143bd70
23#define PHY_ID_BCM57780 0x03625d90
24 21
25#define BRCM_PHY_MODEL(phydev) \ 22#define BRCM_PHY_MODEL(phydev) \
26 ((phydev)->drv->phy_id & (phydev)->drv->phy_id_mask) 23 ((phydev)->drv->phy_id & (phydev)->drv->phy_id_mask)
@@ -823,7 +820,7 @@ static struct phy_driver bcm57780_driver = {
823}; 820};
824 821
825static struct phy_driver bcmac131_driver = { 822static struct phy_driver bcmac131_driver = {
826 .phy_id = 0x0143bc70, 823 .phy_id = PHY_ID_BCMAC131,
827 .phy_id_mask = 0xfffffff0, 824 .phy_id_mask = 0xfffffff0,
828 .name = "Broadcom BCMAC131", 825 .name = "Broadcom BCMAC131",
829 .features = PHY_BASIC_FEATURES | 826 .features = PHY_BASIC_FEATURES |