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_nvm.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_nvm.c')
-rw-r--r-- | drivers/net/igb/e1000_nvm.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/igb/e1000_nvm.c b/drivers/net/igb/e1000_nvm.c index 5942da107a9c..337986422086 100644 --- a/drivers/net/igb/e1000_nvm.c +++ b/drivers/net/igb/e1000_nvm.c | |||
@@ -419,7 +419,7 @@ s32 igb_write_nvm_spi(struct e1000_hw *hw, u16 offset, u16 words, u16 *data) | |||
419 | goto out; | 419 | goto out; |
420 | } | 420 | } |
421 | 421 | ||
422 | ret_val = hw->nvm.ops.acquire_nvm(hw); | 422 | ret_val = hw->nvm.ops.acquire(hw); |
423 | if (ret_val) | 423 | if (ret_val) |
424 | goto out; | 424 | goto out; |
425 | 425 | ||
@@ -468,7 +468,7 @@ s32 igb_write_nvm_spi(struct e1000_hw *hw, u16 offset, u16 words, u16 *data) | |||
468 | 468 | ||
469 | msleep(10); | 469 | msleep(10); |
470 | release: | 470 | release: |
471 | hw->nvm.ops.release_nvm(hw); | 471 | hw->nvm.ops.release(hw); |
472 | 472 | ||
473 | out: | 473 | out: |
474 | return ret_val; | 474 | return ret_val; |
@@ -487,14 +487,14 @@ s32 igb_read_part_num(struct e1000_hw *hw, u32 *part_num) | |||
487 | s32 ret_val; | 487 | s32 ret_val; |
488 | u16 nvm_data; | 488 | u16 nvm_data; |
489 | 489 | ||
490 | ret_val = hw->nvm.ops.read_nvm(hw, NVM_PBA_OFFSET_0, 1, &nvm_data); | 490 | ret_val = hw->nvm.ops.read(hw, NVM_PBA_OFFSET_0, 1, &nvm_data); |
491 | if (ret_val) { | 491 | if (ret_val) { |
492 | hw_dbg("NVM Read Error\n"); | 492 | hw_dbg("NVM Read Error\n"); |
493 | goto out; | 493 | goto out; |
494 | } | 494 | } |
495 | *part_num = (u32)(nvm_data << 16); | 495 | *part_num = (u32)(nvm_data << 16); |
496 | 496 | ||
497 | ret_val = hw->nvm.ops.read_nvm(hw, NVM_PBA_OFFSET_1, 1, &nvm_data); | 497 | ret_val = hw->nvm.ops.read(hw, NVM_PBA_OFFSET_1, 1, &nvm_data); |
498 | if (ret_val) { | 498 | if (ret_val) { |
499 | hw_dbg("NVM Read Error\n"); | 499 | hw_dbg("NVM Read Error\n"); |
500 | goto out; | 500 | goto out; |
@@ -548,7 +548,7 @@ s32 igb_validate_nvm_checksum(struct e1000_hw *hw) | |||
548 | u16 i, nvm_data; | 548 | u16 i, nvm_data; |
549 | 549 | ||
550 | for (i = 0; i < (NVM_CHECKSUM_REG + 1); i++) { | 550 | for (i = 0; i < (NVM_CHECKSUM_REG + 1); i++) { |
551 | ret_val = hw->nvm.ops.read_nvm(hw, i, 1, &nvm_data); | 551 | ret_val = hw->nvm.ops.read(hw, i, 1, &nvm_data); |
552 | if (ret_val) { | 552 | if (ret_val) { |
553 | hw_dbg("NVM Read Error\n"); | 553 | hw_dbg("NVM Read Error\n"); |
554 | goto out; | 554 | goto out; |
@@ -581,7 +581,7 @@ s32 igb_update_nvm_checksum(struct e1000_hw *hw) | |||
581 | u16 i, nvm_data; | 581 | u16 i, nvm_data; |
582 | 582 | ||
583 | for (i = 0; i < NVM_CHECKSUM_REG; i++) { | 583 | for (i = 0; i < NVM_CHECKSUM_REG; i++) { |
584 | ret_val = hw->nvm.ops.read_nvm(hw, i, 1, &nvm_data); | 584 | ret_val = hw->nvm.ops.read(hw, i, 1, &nvm_data); |
585 | if (ret_val) { | 585 | if (ret_val) { |
586 | hw_dbg("NVM Read Error while updating checksum.\n"); | 586 | hw_dbg("NVM Read Error while updating checksum.\n"); |
587 | goto out; | 587 | goto out; |
@@ -589,7 +589,7 @@ s32 igb_update_nvm_checksum(struct e1000_hw *hw) | |||
589 | checksum += nvm_data; | 589 | checksum += nvm_data; |
590 | } | 590 | } |
591 | checksum = (u16) NVM_SUM - checksum; | 591 | checksum = (u16) NVM_SUM - checksum; |
592 | ret_val = hw->nvm.ops.write_nvm(hw, NVM_CHECKSUM_REG, 1, &checksum); | 592 | ret_val = hw->nvm.ops.write(hw, NVM_CHECKSUM_REG, 1, &checksum); |
593 | if (ret_val) | 593 | if (ret_val) |
594 | hw_dbg("NVM Write Error while updating checksum.\n"); | 594 | hw_dbg("NVM Write Error while updating checksum.\n"); |
595 | 595 | ||