Release 4.12 include/linux/of_net.h
/*
* OF helpers for network devices.
*
* This file is released under the GPLv2
*/
#ifndef __LINUX_OF_NET_H
#define __LINUX_OF_NET_H
#ifdef CONFIG_OF_NET
#include <linux/of.h>
struct net_device;
extern int of_get_phy_mode(struct device_node *np);
extern const void *of_get_mac_address(struct device_node *np);
extern struct net_device *of_find_net_device_by_node(struct device_node *np);
#else
static inline int of_get_phy_mode(struct device_node *np)
{
return -ENODEV;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Guenter Roeck | 16 | 100.00% | 1 | 100.00% |
Total | 16 | 100.00% | 1 | 100.00% |
static inline const void *of_get_mac_address(struct device_node *np)
{
return NULL;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Guenter Roeck | 17 | 100.00% | 1 | 100.00% |
Total | 17 | 100.00% | 1 | 100.00% |
static inline struct net_device *of_find_net_device_by_node(struct device_node *np)
{
return NULL;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Florian Fainelli | 17 | 100.00% | 1 | 100.00% |
Total | 17 | 100.00% | 1 | 100.00% |
#endif
#endif /* __LINUX_OF_NET_H */
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Guenter Roeck | 35 | 32.71% | 1 | 25.00% |
Florian Fainelli | 32 | 29.91% | 1 | 25.00% |
David Daney | 29 | 27.10% | 1 | 25.00% |
Shawn Guo | 11 | 10.28% | 1 | 25.00% |
Total | 107 | 100.00% | 4 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.