summaryrefslogtreecommitdiffstats
path: root/include/linux/of_net.h
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@linaro.org>2011-07-04 14:03:17 +0800
committerShawn Guo <shawn.guo@linaro.org>2011-07-27 09:30:56 +0800
commit6ca1a113791eb09dac8c48b2b264c4d72aab410f (patch)
tree1c889fc0c3e942c89c1241f433f2c8758e9d24e2 /include/linux/of_net.h
parent0ca1e290b7c517300bf6cc4f14ebcedb5dfea5cc (diff)
downloadop-kernel-dev-6ca1a113791eb09dac8c48b2b264c4d72aab410f.zip
op-kernel-dev-6ca1a113791eb09dac8c48b2b264c4d72aab410f.tar.gz
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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/of_net.h b/include/linux/of_net.h
index e913081..f474641 100644
--- a/include/linux/of_net.h
+++ b/include/linux/of_net.h
@@ -9,6 +9,7 @@
#ifdef CONFIG_OF_NET
#include <linux/of.h>
+extern const int of_get_phy_mode(struct device_node *np);
extern const void *of_get_mac_address(struct device_node *np);
#endif
OpenPOWER on IntegriCloud