aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/igb/igb_ethtool.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/igb/igb_ethtool.c')
-rw-r--r--drivers/net/igb/igb_ethtool.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/igb/igb_ethtool.c b/drivers/net/igb/igb_ethtool.c
index 4606e63fc6f5..a5bf8ef2848a 100644
--- a/drivers/net/igb/igb_ethtool.c
+++ b/drivers/net/igb/igb_ethtool.c
@@ -593,12 +593,12 @@ static int igb_get_eeprom(struct net_device *netdev,
593 return -ENOMEM; 593 return -ENOMEM;
594 594
595 if (hw->nvm.type == e1000_nvm_eeprom_spi) 595 if (hw->nvm.type == e1000_nvm_eeprom_spi)
596 ret_val = hw->nvm.ops.read_nvm(hw, first_word, 596 ret_val = hw->nvm.ops.read(hw, first_word,
597 last_word - first_word + 1, 597 last_word - first_word + 1,
598 eeprom_buff); 598 eeprom_buff);
599 else { 599 else {
600 for (i = 0; i < last_word - first_word + 1; i++) { 600 for (i = 0; i < last_word - first_word + 1; i++) {
601 ret_val = hw->nvm.ops.read_nvm(hw, first_word + i, 1, 601 ret_val = hw->nvm.ops.read(hw, first_word + i, 1,
602 &eeprom_buff[i]); 602 &eeprom_buff[i]);
603 if (ret_val) 603 if (ret_val)
604 break; 604 break;
@@ -645,14 +645,14 @@ static int igb_set_eeprom(struct net_device *netdev,
645 if (eeprom->offset & 1) { 645 if (eeprom->offset & 1) {
646 /* need read/modify/write of first changed EEPROM word */ 646 /* need read/modify/write of first changed EEPROM word */
647 /* only the second byte of the word is being modified */ 647 /* only the second byte of the word is being modified */
648 ret_val = hw->nvm.ops.read_nvm(hw, first_word, 1, 648 ret_val = hw->nvm.ops.read(hw, first_word, 1,
649 &eeprom_buff[0]); 649 &eeprom_buff[0]);
650 ptr++; 650 ptr++;
651 } 651 }
652 if (((eeprom->offset + eeprom->len) & 1) && (ret_val == 0)) { 652 if (((eeprom->offset + eeprom->len) & 1) && (ret_val == 0)) {
653 /* need read/modify/write of last changed EEPROM word */ 653 /* need read/modify/write of last changed EEPROM word */
654 /* only the first byte of the word is being modified */ 654 /* only the first byte of the word is being modified */
655 ret_val = hw->nvm.ops.read_nvm(hw, last_word, 1, 655 ret_val = hw->nvm.ops.read(hw, last_word, 1,
656 &eeprom_buff[last_word - first_word]); 656 &eeprom_buff[last_word - first_word]);
657 } 657 }
658 658
@@ -665,7 +665,7 @@ static int igb_set_eeprom(struct net_device *netdev,
665 for (i = 0; i < last_word - first_word + 1; i++) 665 for (i = 0; i < last_word - first_word + 1; i++)
666 eeprom_buff[i] = cpu_to_le16(eeprom_buff[i]); 666 eeprom_buff[i] = cpu_to_le16(eeprom_buff[i]);
667 667
668 ret_val = hw->nvm.ops.write_nvm(hw, first_word, 668 ret_val = hw->nvm.ops.write(hw, first_word,
669 last_word - first_word + 1, eeprom_buff); 669 last_word - first_word + 1, eeprom_buff);
670 670
671 /* Update the checksum over the first part of the EEPROM if needed 671 /* Update the checksum over the first part of the EEPROM if needed
@@ -689,7 +689,7 @@ static void igb_get_drvinfo(struct net_device *netdev,
689 689
690 /* EEPROM image version # is reported as firmware version # for 690 /* EEPROM image version # is reported as firmware version # for
691 * 82575 controllers */ 691 * 82575 controllers */
692 adapter->hw.nvm.ops.read_nvm(&adapter->hw, 5, 1, &eeprom_data); 692 adapter->hw.nvm.ops.read(&adapter->hw, 5, 1, &eeprom_data);
693 sprintf(firmware_version, "%d.%d-%d", 693 sprintf(firmware_version, "%d.%d-%d",
694 (eeprom_data & 0xF000) >> 12, 694 (eeprom_data & 0xF000) >> 12,
695 (eeprom_data & 0x0FF0) >> 4, 695 (eeprom_data & 0x0FF0) >> 4,
@@ -1056,7 +1056,7 @@ static int igb_eeprom_test(struct igb_adapter *adapter, u64 *data)
1056 *data = 0; 1056 *data = 0;
1057 /* Read and add up the contents of the EEPROM */ 1057 /* Read and add up the contents of the EEPROM */
1058 for (i = 0; i < (NVM_CHECKSUM_REG + 1); i++) { 1058 for (i = 0; i < (NVM_CHECKSUM_REG + 1); i++) {
1059 if ((adapter->hw.nvm.ops.read_nvm(&adapter->hw, i, 1, &temp)) 1059 if ((adapter->hw.nvm.ops.read(&adapter->hw, i, 1, &temp))
1060 < 0) { 1060 < 0) {
1061 *data = 1; 1061 *data = 1;
1062 break; 1062 break;