diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2011-07-04 02:03:17 -0400 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2011-07-26 21:30:56 -0400 |
commit | 6ca1a113791eb09dac8c48b2b264c4d72aab410f (patch) | |
tree | 1c889fc0c3e942c89c1241f433f2c8758e9d24e2 /include/linux/of_net.h | |
parent | 0ca1e290b7c517300bf6cc4f14ebcedb5dfea5cc (diff) |
dt/net: add helper function of_get_phy_mode
It adds the helper function of_get_phy_mode getting phy interface
from device tree.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Cc: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: David Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/of_net.h')
-rw-r--r-- | include/linux/of_net.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/of_net.h b/include/linux/of_net.h index e913081fb52a..f47464188710 100644 --- a/include/linux/of_net.h +++ b/include/linux/of_net.h | |||
@@ -9,6 +9,7 @@ | |||
9 | 9 | ||
10 | #ifdef CONFIG_OF_NET | 10 | #ifdef CONFIG_OF_NET |
11 | #include <linux/of.h> | 11 | #include <linux/of.h> |
12 | extern const int of_get_phy_mode(struct device_node *np); | ||
12 | extern const void *of_get_mac_address(struct device_node *np); | 13 | extern const void *of_get_mac_address(struct device_node *np); |
13 | #endif | 14 | #endif |
14 | 15 | ||