aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/phy
diff options
context:
space:
mode:
authorMatt Carlson <mcarlson@broadcom.com>2010-02-17 15:17:04 +0000
committerDavid S. Miller <davem@davemloft.net>2010-02-17 17:27:40 -0800
commit6a443a0f72ad7706345412dbd2e4d4981fdfce39 (patch)
treee0e9724789c0bf2e232bae18080147834e58da50 /drivers/net/phy
parent79eb6904361fe4e54e589919a9b62c5e036c42c3 (diff)
downloadkernel_samsung_espresso10-6a443a0f72ad7706345412dbd2e4d4981fdfce39.zip
kernel_samsung_espresso10-6a443a0f72ad7706345412dbd2e4d4981fdfce39.tar.gz
kernel_samsung_espresso10-6a443a0f72ad7706345412dbd2e4d4981fdfce39.tar.bz2
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')
-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 33c4b12..f482fc4 100644
--- a/drivers/net/phy/broadcom.c
+++ b/drivers/net/phy/broadcom.c
@@ -18,9 +18,6 @@
#include <linux/phy.h>
#include <linux/brcmphy.h>
-#define PHY_ID_BCM50610 0x0143bd60
-#define PHY_ID_BCM50610M 0x0143bd70
-#define PHY_ID_BCM57780 0x03625d90
#define BRCM_PHY_MODEL(phydev) \
((phydev)->drv->phy_id & (phydev)->drv->phy_id_mask)
@@ -823,7 +820,7 @@ static struct phy_driver bcm57780_driver = {
};
static struct phy_driver bcmac131_driver = {
- .phy_id = 0x0143bc70,
+ .phy_id = PHY_ID_BCMAC131,
.phy_id_mask = 0xfffffff0,
.name = "Broadcom BCMAC131",
.features = PHY_BASIC_FEATURES |