Skip to content

Commit 6263e81

Browse files
faelevJeff Kirsher
authored andcommitted
ice: Fix NVM mask defines
Fixes bad masks that would break compilation when evaluated. Signed-off-by: Lev Faerman <[email protected]> Signed-off-by: Anirudh Venkataramanan <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent d09e269 commit 6263e81

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/net/ethernet/intel/ice/ice_adminq_cmd.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,10 +1066,10 @@ struct ice_aqc_nvm {
10661066
#define ICE_AQC_NVM_LAST_CMD BIT(0)
10671067
#define ICE_AQC_NVM_PCIR_REQ BIT(0) /* Used by NVM Update reply */
10681068
#define ICE_AQC_NVM_PRESERVATION_S 1
1069-
#define ICE_AQC_NVM_PRESERVATION_M (3 << CSR_AQ_NVM_PRESERVATION_S)
1070-
#define ICE_AQC_NVM_NO_PRESERVATION (0 << CSR_AQ_NVM_PRESERVATION_S)
1069+
#define ICE_AQC_NVM_PRESERVATION_M (3 << ICE_AQC_NVM_PRESERVATION_S)
1070+
#define ICE_AQC_NVM_NO_PRESERVATION (0 << ICE_AQC_NVM_PRESERVATION_S)
10711071
#define ICE_AQC_NVM_PRESERVE_ALL BIT(1)
1072-
#define ICE_AQC_NVM_PRESERVE_SELECTED (3 << CSR_AQ_NVM_PRESERVATION_S)
1072+
#define ICE_AQC_NVM_PRESERVE_SELECTED (3 << ICE_AQC_NVM_PRESERVATION_S)
10731073
#define ICE_AQC_NVM_FLASH_ONLY BIT(7)
10741074
__le16 module_typeid;
10751075
__le16 length;

0 commit comments

Comments
 (0)