staging: lustre: ldlm: Fix warning about unneeded return statement
[linux-2.6/btrfs-unstable.git] / include / linux / phy_fixed.h
blobf2ca1b459377803094005029cc765ef1f3a9abd6
1 #ifndef __PHY_FIXED_H
2 #define __PHY_FIXED_H
4 struct fixed_phy_status {
5 int link;
6 int speed;
7 int duplex;
8 int pause;
9 int asym_pause;
12 struct device_node;
14 #ifdef CONFIG_FIXED_PHY
15 extern int fixed_phy_add(unsigned int irq, int phy_id,
16 struct fixed_phy_status *status);
17 extern struct phy_device *fixed_phy_register(unsigned int irq,
18 struct fixed_phy_status *status,
19 struct device_node *np);
20 extern void fixed_phy_del(int phy_addr);
21 extern int fixed_phy_set_link_update(struct phy_device *phydev,
22 int (*link_update)(struct net_device *,
23 struct fixed_phy_status *));
24 #else
25 static inline int fixed_phy_add(unsigned int irq, int phy_id,
26 struct fixed_phy_status *status)
28 return -ENODEV;
30 static inline struct phy_device *fixed_phy_register(unsigned int irq,
31 struct fixed_phy_status *status,
32 struct device_node *np)
34 return ERR_PTR(-ENODEV);
36 static inline int fixed_phy_del(int phy_addr)
38 return -ENODEV;
40 static inline int fixed_phy_set_link_update(struct phy_device *phydev,
41 int (*link_update)(struct net_device *,
42 struct fixed_phy_status *))
44 return -ENODEV;
46 #endif /* CONFIG_FIXED_PHY */
48 #endif /* __PHY_FIXED_H */