File tree Expand file tree Collapse file tree 2 files changed +0
-40
lines changed Expand file tree Collapse file tree 2 files changed +0
-40
lines changed Original file line number Diff line number Diff line change @@ -115,37 +115,6 @@ int fixed_phy_set_link_update(struct phy_device *phydev,
115
115
}
116
116
EXPORT_SYMBOL_GPL (fixed_phy_set_link_update );
117
117
118
- int fixed_phy_update_state (struct phy_device * phydev ,
119
- const struct fixed_phy_status * status ,
120
- const struct fixed_phy_status * changed )
121
- {
122
- struct fixed_mdio_bus * fmb = & platform_fmb ;
123
- struct fixed_phy * fp ;
124
-
125
- if (!phydev || phydev -> mdio .bus != fmb -> mii_bus )
126
- return - EINVAL ;
127
-
128
- list_for_each_entry (fp , & fmb -> phys , node ) {
129
- if (fp -> addr == phydev -> mdio .addr ) {
130
- write_seqcount_begin (& fp -> seqcount );
131
- #define _UPD (x ) if (changed->x) \
132
- fp->status.x = status->x
133
- _UPD (link );
134
- _UPD (speed );
135
- _UPD (duplex );
136
- _UPD (pause );
137
- _UPD (asym_pause );
138
- #undef _UPD
139
- fixed_phy_update (fp );
140
- write_seqcount_end (& fp -> seqcount );
141
- return 0 ;
142
- }
143
- }
144
-
145
- return - ENOENT ;
146
- }
147
- EXPORT_SYMBOL (fixed_phy_update_state );
148
-
149
118
int fixed_phy_add (unsigned int irq , int phy_addr ,
150
119
struct fixed_phy_status * status ,
151
120
int link_gpio )
Original file line number Diff line number Diff line change @@ -24,9 +24,6 @@ extern void fixed_phy_unregister(struct phy_device *phydev);
24
24
extern int fixed_phy_set_link_update (struct phy_device * phydev ,
25
25
int (* link_update )(struct net_device * ,
26
26
struct fixed_phy_status * ));
27
- extern int fixed_phy_update_state (struct phy_device * phydev ,
28
- const struct fixed_phy_status * status ,
29
- const struct fixed_phy_status * changed );
30
27
#else
31
28
static inline int fixed_phy_add (unsigned int irq , int phy_id ,
32
29
struct fixed_phy_status * status ,
@@ -50,12 +47,6 @@ static inline int fixed_phy_set_link_update(struct phy_device *phydev,
50
47
{
51
48
return - ENODEV ;
52
49
}
53
- static inline int fixed_phy_update_state (struct phy_device * phydev ,
54
- const struct fixed_phy_status * status ,
55
- const struct fixed_phy_status * changed )
56
- {
57
- return - ENODEV ;
58
- }
59
50
#endif /* CONFIG_FIXED_PHY */
60
51
61
52
#endif /* __PHY_FIXED_H */
You can’t perform that action at this time.
0 commit comments