diff options
author | Camelia Groza <camelia.groza@nxp.com> | 2022-05-24 21:12:32 +0300 |
---|---|---|
committer | Xiaobo Xie <xiaobo.xie@nxp.com> | 2022-05-30 13:06:56 +0200 |
commit | 9afbdf3713a9cdf15eece57bfc97d8beb62af0ae (patch) | |
tree | 6a33eb7698353023d08a8e155e3163f2f6d00ddf /include | |
parent | f405a4f65855b384ad5b7cd3eff1ff815826ffa8 (diff) |
net: phy: fixed_phy: add fixed PHY ACPI support
Add the fwnode_fixed_phy_register() call. The call is similar to the existing
fixed_phy_register().
Signed-off-by: Vikas Singh <vikas.singh@puresoftware.com>
Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/phy_fixed.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/phy_fixed.h b/include/linux/phy_fixed.h index 52bc8e487ef7..ae2db30a50eb 100644 --- a/include/linux/phy_fixed.h +++ b/include/linux/phy_fixed.h @@ -30,7 +30,17 @@ extern void fixed_phy_unregister(struct phy_device *phydev); extern int fixed_phy_set_link_update(struct phy_device *phydev, int (*link_update)(struct net_device *, struct fixed_phy_status *)); + +struct phy_device *fwnode_fixed_phy_register(struct fwnode_handle *fwnode_np, + struct fixed_phy_status *status); + #else +struct phy_device *fwnode_fixed_phy_register(struct fwnode_handle *fwnode_np, + struct fixed_phy_status *status) +{ + return ERR_PTR(-ENODEV); +} + static inline int fixed_phy_add(unsigned int irq, int phy_id, struct fixed_phy_status *status) { |