summaryrefslogtreecommitdiff
path: root/drivers/staging/et131x/et1310_phy.h
diff options
context:
space:
mode:
authorMark Einon <mark.einon@gmail.com>2011-09-04 10:24:33 (GMT)
committerGreg Kroah-Hartman <gregkh@suse.de>2011-09-06 23:54:54 (GMT)
commit06530d81d6a6b9cccd6433868fc0bb68fe0361e3 (patch)
treee183dad1e7be96887efa4ee8f1e6cc067fe43223 /drivers/staging/et131x/et1310_phy.h
parent412f8e0c52b126c6f54d0626a9dede9438d76c03 (diff)
downloadlinux-fsl-qoriq-06530d81d6a6b9cccd6433868fc0bb68fe0361e3.tar.xz
staging: et131x: Remove private adapter->duplex_mode and use phydev->duplex instead
The phy device keeps a note of the duplex mode, so use that value instead of duplex mode. Also use the phydev defines for duplex modes, and remove the driver private ones. Signed-off-by: Mark Einon <mark.einon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/et131x/et1310_phy.h')
-rw-r--r--drivers/staging/et131x/et1310_phy.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/staging/et131x/et1310_phy.h b/drivers/staging/et131x/et1310_phy.h
index 3e95c66..d996e8e 100644
--- a/drivers/staging/et131x/et1310_phy.h
+++ b/drivers/staging/et131x/et1310_phy.h
@@ -242,10 +242,6 @@ struct mi_regs {
#define TRUEPHY_MASK 2
#endif
-/* Define duplex modes */
-#define TRUEPHY_DUPLEX_HALF 0
-#define TRUEPHY_DUPLEX_FULL 1
-
/* Define master/slave configuration values */
#define TRUEPHY_CFG_SLAVE 0
#define TRUEPHY_CFG_MASTER 1