diff options
author | Alexander Duyck <alexander.h.duyck@intel.com> | 2009-02-06 18:17:26 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-07 05:43:05 -0500 |
commit | a8d2a0c27f84bdbf54b7e1c1a52ef7b8b7196dbc (patch) | |
tree | 0c1a666348dd94797740a0788a025764a303f54e /drivers/net/igb/igb.h | |
parent | 40a70b3889ea50daa10a7f3468920c1f5483155d (diff) |
igb: rename phy ops
This patch renames write_phy_reg to write_reg and read_phy_reg to read_reg.
It seems redundant to call out phy in an operation that is part of the
phy_ops struct.
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/igb/igb.h')
-rw-r--r-- | drivers/net/igb/igb.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/igb/igb.h b/drivers/net/igb/igb.h index 530d7aa4cb86..a2a812deb6b8 100644 --- a/drivers/net/igb/igb.h +++ b/drivers/net/igb/igb.h | |||
@@ -313,24 +313,24 @@ extern void igb_set_ethtool_ops(struct net_device *); | |||
313 | 313 | ||
314 | static inline s32 igb_reset_phy(struct e1000_hw *hw) | 314 | static inline s32 igb_reset_phy(struct e1000_hw *hw) |
315 | { | 315 | { |
316 | if (hw->phy.ops.reset_phy) | 316 | if (hw->phy.ops.reset) |
317 | return hw->phy.ops.reset_phy(hw); | 317 | return hw->phy.ops.reset(hw); |
318 | 318 | ||
319 | return 0; | 319 | return 0; |
320 | } | 320 | } |
321 | 321 | ||
322 | static inline s32 igb_read_phy_reg(struct e1000_hw *hw, u32 offset, u16 *data) | 322 | static inline s32 igb_read_phy_reg(struct e1000_hw *hw, u32 offset, u16 *data) |
323 | { | 323 | { |
324 | if (hw->phy.ops.read_phy_reg) | 324 | if (hw->phy.ops.read_reg) |
325 | return hw->phy.ops.read_phy_reg(hw, offset, data); | 325 | return hw->phy.ops.read_reg(hw, offset, data); |
326 | 326 | ||
327 | return 0; | 327 | return 0; |
328 | } | 328 | } |
329 | 329 | ||
330 | static inline s32 igb_write_phy_reg(struct e1000_hw *hw, u32 offset, u16 data) | 330 | static inline s32 igb_write_phy_reg(struct e1000_hw *hw, u32 offset, u16 data) |
331 | { | 331 | { |
332 | if (hw->phy.ops.write_phy_reg) | 332 | if (hw->phy.ops.write_reg) |
333 | return hw->phy.ops.write_phy_reg(hw, offset, data); | 333 | return hw->phy.ops.write_reg(hw, offset, data); |
334 | 334 | ||
335 | return 0; | 335 | return 0; |
336 | } | 336 | } |