cregit-Linux how code gets into the kernel

Release 4.7 include/linux/of_net.h

Directory: include/linux
/*
 * 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

PersonTokensPropCommitsCommitProp
guenter roeckguenter roeck16100.00%1100.00%
Total16100.00%1100.00%


static inline const void *of_get_mac_address(struct device_node *np) { return NULL; }

Contributors

PersonTokensPropCommitsCommitProp
guenter roeckguenter roeck17100.00%1100.00%
Total17100.00%1100.00%


static inline struct net_device *of_find_net_device_by_node(struct device_node *np) { return NULL; }

Contributors

PersonTokensPropCommitsCommitProp
florian fainelliflorian fainelli17100.00%1100.00%
Total17100.00%1100.00%

#endif #endif /* __LINUX_OF_NET_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
guenter roeckguenter roeck3532.71%125.00%
florian fainelliflorian fainelli3229.91%125.00%
david daneydavid daney2927.10%125.00%
shawn guoshawn guo1110.28%125.00%
Total107100.00%4100.00%
Directory: include/linux
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
{% endraw %}