diff options
author | Alexander Duyck <alexander.h.duyck@intel.com> | 2009-02-06 18:17:47 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-07 05:43:06 -0500 |
commit | 312c75aee7606e886d91c810bc491c9f40ff5837 (patch) | |
tree | b8ab05276b686849a5916f93a63d8e44ce800f1e /drivers/net/igb/e1000_mac.c | |
parent | a8d2a0c27f84bdbf54b7e1c1a52ef7b8b7196dbc (diff) |
igb: rename nvm ops
All of the nvm ops have the tag _nvm added to the end which is redundant
since all of the calls to the ops have to go through the nvm ops struct
anyway.
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/e1000_mac.c')
-rw-r--r-- | drivers/net/igb/e1000_mac.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/igb/e1000_mac.c b/drivers/net/igb/e1000_mac.c index d0b695cf956c..6682206750dc 100644 --- a/drivers/net/igb/e1000_mac.c +++ b/drivers/net/igb/e1000_mac.c | |||
@@ -135,7 +135,7 @@ s32 igb_check_alt_mac_addr(struct e1000_hw *hw) | |||
135 | u16 offset, nvm_alt_mac_addr_offset, nvm_data; | 135 | u16 offset, nvm_alt_mac_addr_offset, nvm_data; |
136 | u8 alt_mac_addr[ETH_ALEN]; | 136 | u8 alt_mac_addr[ETH_ALEN]; |
137 | 137 | ||
138 | ret_val = hw->nvm.ops.read_nvm(hw, NVM_ALT_MAC_ADDR_PTR, 1, | 138 | ret_val = hw->nvm.ops.read(hw, NVM_ALT_MAC_ADDR_PTR, 1, |
139 | &nvm_alt_mac_addr_offset); | 139 | &nvm_alt_mac_addr_offset); |
140 | if (ret_val) { | 140 | if (ret_val) { |
141 | hw_dbg("NVM Read Error\n"); | 141 | hw_dbg("NVM Read Error\n"); |
@@ -152,7 +152,7 @@ s32 igb_check_alt_mac_addr(struct e1000_hw *hw) | |||
152 | 152 | ||
153 | for (i = 0; i < ETH_ALEN; i += 2) { | 153 | for (i = 0; i < ETH_ALEN; i += 2) { |
154 | offset = nvm_alt_mac_addr_offset + (i >> 1); | 154 | offset = nvm_alt_mac_addr_offset + (i >> 1); |
155 | ret_val = hw->nvm.ops.read_nvm(hw, offset, 1, &nvm_data); | 155 | ret_val = hw->nvm.ops.read(hw, offset, 1, &nvm_data); |
156 | if (ret_val) { | 156 | if (ret_val) { |
157 | hw_dbg("NVM Read Error\n"); | 157 | hw_dbg("NVM Read Error\n"); |
158 | goto out; | 158 | goto out; |
@@ -575,8 +575,7 @@ static s32 igb_set_default_fc(struct e1000_hw *hw) | |||
575 | * control setting, then the variable hw->fc will | 575 | * control setting, then the variable hw->fc will |
576 | * be initialized based on a value in the EEPROM. | 576 | * be initialized based on a value in the EEPROM. |
577 | */ | 577 | */ |
578 | ret_val = hw->nvm.ops.read_nvm(hw, NVM_INIT_CONTROL2_REG, 1, | 578 | ret_val = hw->nvm.ops.read(hw, NVM_INIT_CONTROL2_REG, 1, &nvm_data); |
579 | &nvm_data); | ||
580 | 579 | ||
581 | if (ret_val) { | 580 | if (ret_val) { |
582 | hw_dbg("NVM Read Error\n"); | 581 | hw_dbg("NVM Read Error\n"); |
@@ -1028,7 +1027,7 @@ static s32 igb_valid_led_default(struct e1000_hw *hw, u16 *data) | |||
1028 | { | 1027 | { |
1029 | s32 ret_val; | 1028 | s32 ret_val; |
1030 | 1029 | ||
1031 | ret_val = hw->nvm.ops.read_nvm(hw, NVM_ID_LED_SETTINGS, 1, data); | 1030 | ret_val = hw->nvm.ops.read(hw, NVM_ID_LED_SETTINGS, 1, data); |
1032 | if (ret_val) { | 1031 | if (ret_val) { |
1033 | hw_dbg("NVM Read Error\n"); | 1032 | hw_dbg("NVM Read Error\n"); |
1034 | goto out; | 1033 | goto out; |