aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/phy_fixed.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/phy_fixed.h b/include/linux/phy_fixed.h
index c78fc203db43..1e5d86ebdaeb 100644
--- a/include/linux/phy_fixed.h
+++ b/include/linux/phy_fixed.h
@@ -19,6 +19,12 @@ extern int fixed_phy_add(unsigned int irq, int phy_id,
19extern struct phy_device *fixed_phy_register(unsigned int irq, 19extern struct phy_device *fixed_phy_register(unsigned int irq,
20 struct fixed_phy_status *status, 20 struct fixed_phy_status *status,
21 struct device_node *np); 21 struct device_node *np);
22
23extern struct phy_device *
24fixed_phy_register_with_gpiod(unsigned int irq,
25 struct fixed_phy_status *status,
26 struct gpio_desc *gpiod);
27
22extern void fixed_phy_unregister(struct phy_device *phydev); 28extern void fixed_phy_unregister(struct phy_device *phydev);
23extern int fixed_phy_set_link_update(struct phy_device *phydev, 29extern int fixed_phy_set_link_update(struct phy_device *phydev,
24 int (*link_update)(struct net_device *, 30 int (*link_update)(struct net_device *,
@@ -35,6 +41,15 @@ static inline struct phy_device *fixed_phy_register(unsigned int irq,
35{ 41{
36 return ERR_PTR(-ENODEV); 42 return ERR_PTR(-ENODEV);
37} 43}
44
45static inline struct phy_device *
46fixed_phy_register_with_gpiod(unsigned int irq,
47 struct fixed_phy_status *status,
48 struct gpio_desc *gpiod)
49{
50 return ERR_PTR(-ENODEV);
51}
52
38static inline void fixed_phy_unregister(struct phy_device *phydev) 53static inline void fixed_phy_unregister(struct phy_device *phydev)
39{ 54{
40} 55}