diff options
author | Kumar Gala <galak@gate.crashing.org> | 2006-01-11 11:27:33 -0800 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2006-01-12 16:31:52 -0500 |
commit | a4d00f179fcec7065fe5742e9cebd6500886070f (patch) | |
tree | 1d0fea6521276122c2e767db52bc821241849f8e /include/linux/phy.h | |
parent | 1d5326774c9245fef77334a9e0f11cd4f8aa7b4e (diff) | |
download | kernel-crypto-a4d00f179fcec7065fe5742e9cebd6500886070f.tar.gz kernel-crypto-a4d00f179fcec7065fe5742e9cebd6500886070f.tar.xz kernel-crypto-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.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h index 92a9696fdeb..331521a10a2 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 { |