Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 942c7112 authored by Jacob Keller's avatar Jacob Keller Committed by Jeff Kirsher
Browse files

e1000e: mark shifted values as unsigned



The E1000_ICH_NVM_SIG_MASK value is shifted, out to the 31st bit, which
is the signed bit for signed constants. Mark these values as unsigned to
prevent compiler warnings and issues on platforms which a different
signed bit implementation.

Signed-off-by: default avatarJacob Keller <jacob.e.keller@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 18dd2392
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -73,10 +73,10 @@
				 (ID_LED_OFF1_ON2  <<  4) | \
				 (ID_LED_OFF1_ON2  <<  4) | \
				 (ID_LED_DEF1_DEF2))
				 (ID_LED_DEF1_DEF2))


#define E1000_ICH_NVM_SIG_WORD		0x13
#define E1000_ICH_NVM_SIG_WORD		0x13u
#define E1000_ICH_NVM_SIG_MASK		0xC000
#define E1000_ICH_NVM_SIG_MASK		0xC000u
#define E1000_ICH_NVM_VALID_SIG_MASK	0xC0
#define E1000_ICH_NVM_VALID_SIG_MASK	0xC0u
#define E1000_ICH_NVM_SIG_VALUE		0x80
#define E1000_ICH_NVM_SIG_VALUE		0x80u


#define E1000_ICH8_LAN_INIT_TIMEOUT	1500
#define E1000_ICH8_LAN_INIT_TIMEOUT	1500