summaryrefslogtreecommitdiffstats
path: root/include/linux/phy.h
diff options
context:
space:
mode:
authorKumar Gala2006-01-11 20:27:33 +0100
committerJeff Garzik2006-01-12 22:31:52 +0100
commita4d00f179fcec7065fe5742e9cebd6500886070f (patch)
tree1d0fea6521276122c2e767db52bc821241849f8e /include/linux/phy.h
parent[PATCH] gianfar mii: Use proper resource for MII memory region (diff)
downloadkernel-qcow2-linux-a4d00f179fcec7065fe5742e9cebd6500886070f.tar.gz
kernel-qcow2-linux-a4d00f179fcec7065fe5742e9cebd6500886070f.tar.xz
kernel-qcow2-linux-a4d00f179fcec7065fe5742e9cebd6500886070f.zip
[PATCH] phy: Added a macro to represent the string format used to match a phy device
Add the PHY_ID_FMT macro to ensure that the format of the id string used by a driver to match to its specific phy is consistent between the mdio_bus and the driver. Signed-off-by: Kumar Gala <galak@kernel.crashing.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'include/linux/phy.h')
-rw-r--r--include/linux/phy.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h
index 92a9696fdebe..331521a10a2d 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -53,6 +53,9 @@
#define PHY_MAX_ADDR 32
+/* Used when trying to connect to a specific phy (mii bus id:phy device id) */
+#define PHY_ID_FMT "%x:%02x"
+
/* The Bus class for PHYs. Devices which provide access to
* PHYs should register using this structure */
struct mii_bus {