Contributors: 5
Author |
Tokens |
Token Proportion |
Commits |
Commit Proportion |
Calvin Johnson |
63 |
54.78% |
2 |
33.33% |
Grant C. Likely |
16 |
13.91% |
1 |
16.67% |
Florian Fainelli |
14 |
12.17% |
1 |
16.67% |
Andrew Lunn |
12 |
10.43% |
1 |
16.67% |
Oleksij Rempel |
10 |
8.70% |
1 |
16.67% |
Total |
115 |
|
6 |
|
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* FWNODE helper for the MDIO (Ethernet PHY) API
*/
#ifndef __LINUX_FWNODE_MDIO_H
#define __LINUX_FWNODE_MDIO_H
#include <linux/phy.h>
#if IS_ENABLED(CONFIG_FWNODE_MDIO)
int fwnode_mdiobus_phy_device_register(struct mii_bus *mdio,
struct phy_device *phy,
struct fwnode_handle *child, u32 addr);
int fwnode_mdiobus_register_phy(struct mii_bus *bus,
struct fwnode_handle *child, u32 addr);
#else /* CONFIG_FWNODE_MDIO */
int fwnode_mdiobus_phy_device_register(struct mii_bus *mdio,
struct phy_device *phy,
struct fwnode_handle *child, u32 addr)
{
return -EINVAL;
}
static inline int fwnode_mdiobus_register_phy(struct mii_bus *bus,
struct fwnode_handle *child,
u32 addr)
{
return -EINVAL;
}
#endif
#endif /* __LINUX_FWNODE_MDIO_H */