diff options
author | Bruce Allan <bruce.w.allan@intel.com> | 2009-11-20 18:26:44 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-21 14:34:18 -0500 |
commit | 564ea9bba1a1380d5474504bcd943ee84075534f (patch) | |
tree | 8378c606230b63ad403927ba4018fb2eb588efb6 /drivers/net/e1000e/ich8lan.c | |
parent | 84efb7b968ab91d0099620865b3f563eb0ddf5a6 (diff) |
e1000e: set bools to true/false instead of 1/0
Set booleans to 'true' or 'false' to make it clear it is a boolean. Also
change instances of TRUE/FALSE in comments to lowercase true/false.
Signed-off-by: Bruce Allan <bruce.w.allan@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/e1000e/ich8lan.c')
-rw-r--r-- | drivers/net/e1000e/ich8lan.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/net/e1000e/ich8lan.c b/drivers/net/e1000e/ich8lan.c index 191a4e39d289..f8ee0f29d237 100644 --- a/drivers/net/e1000e/ich8lan.c +++ b/drivers/net/e1000e/ich8lan.c | |||
@@ -401,7 +401,7 @@ static s32 e1000_init_nvm_params_ich8lan(struct e1000_hw *hw) | |||
401 | 401 | ||
402 | /* Clear shadow ram */ | 402 | /* Clear shadow ram */ |
403 | for (i = 0; i < nvm->word_size; i++) { | 403 | for (i = 0; i < nvm->word_size; i++) { |
404 | dev_spec->shadow_ram[i].modified = 0; | 404 | dev_spec->shadow_ram[i].modified = false; |
405 | dev_spec->shadow_ram[i].value = 0xFFFF; | 405 | dev_spec->shadow_ram[i].value = 0xFFFF; |
406 | } | 406 | } |
407 | 407 | ||
@@ -430,7 +430,7 @@ static s32 e1000_init_mac_params_ich8lan(struct e1000_adapter *adapter) | |||
430 | if (mac->type == e1000_ich8lan) | 430 | if (mac->type == e1000_ich8lan) |
431 | mac->rar_entry_count--; | 431 | mac->rar_entry_count--; |
432 | /* Set if manageability features are enabled. */ | 432 | /* Set if manageability features are enabled. */ |
433 | mac->arc_subsystem_valid = 1; | 433 | mac->arc_subsystem_valid = true; |
434 | 434 | ||
435 | /* LED operations */ | 435 | /* LED operations */ |
436 | switch (mac->type) { | 436 | switch (mac->type) { |
@@ -464,7 +464,7 @@ static s32 e1000_init_mac_params_ich8lan(struct e1000_adapter *adapter) | |||
464 | 464 | ||
465 | /* Enable PCS Lock-loss workaround for ICH8 */ | 465 | /* Enable PCS Lock-loss workaround for ICH8 */ |
466 | if (mac->type == e1000_ich8lan) | 466 | if (mac->type == e1000_ich8lan) |
467 | e1000e_set_kmrn_lock_loss_workaround_ich8lan(hw, 1); | 467 | e1000e_set_kmrn_lock_loss_workaround_ich8lan(hw, true); |
468 | 468 | ||
469 | return 0; | 469 | return 0; |
470 | } | 470 | } |
@@ -1403,7 +1403,7 @@ out: | |||
1403 | /** | 1403 | /** |
1404 | * e1000_set_d0_lplu_state_ich8lan - Set Low Power Linkup D0 state | 1404 | * e1000_set_d0_lplu_state_ich8lan - Set Low Power Linkup D0 state |
1405 | * @hw: pointer to the HW structure | 1405 | * @hw: pointer to the HW structure |
1406 | * @active: TRUE to enable LPLU, FALSE to disable | 1406 | * @active: true to enable LPLU, false to disable |
1407 | * | 1407 | * |
1408 | * Sets the LPLU D0 state according to the active flag. When | 1408 | * Sets the LPLU D0 state according to the active flag. When |
1409 | * activating LPLU this function also disables smart speed | 1409 | * activating LPLU this function also disables smart speed |
@@ -1489,7 +1489,7 @@ static s32 e1000_set_d0_lplu_state_ich8lan(struct e1000_hw *hw, bool active) | |||
1489 | /** | 1489 | /** |
1490 | * e1000_set_d3_lplu_state_ich8lan - Set Low Power Linkup D3 state | 1490 | * e1000_set_d3_lplu_state_ich8lan - Set Low Power Linkup D3 state |
1491 | * @hw: pointer to the HW structure | 1491 | * @hw: pointer to the HW structure |
1492 | * @active: TRUE to enable LPLU, FALSE to disable | 1492 | * @active: true to enable LPLU, false to disable |
1493 | * | 1493 | * |
1494 | * Sets the LPLU D3 state according to the active flag. When | 1494 | * Sets the LPLU D3 state according to the active flag. When |
1495 | * activating LPLU this function also disables smart speed | 1495 | * activating LPLU this function also disables smart speed |
@@ -1952,7 +1952,7 @@ static s32 e1000_write_nvm_ich8lan(struct e1000_hw *hw, u16 offset, u16 words, | |||
1952 | nvm->ops.acquire(hw); | 1952 | nvm->ops.acquire(hw); |
1953 | 1953 | ||
1954 | for (i = 0; i < words; i++) { | 1954 | for (i = 0; i < words; i++) { |
1955 | dev_spec->shadow_ram[offset+i].modified = 1; | 1955 | dev_spec->shadow_ram[offset+i].modified = true; |
1956 | dev_spec->shadow_ram[offset+i].value = data[i]; | 1956 | dev_spec->shadow_ram[offset+i].value = data[i]; |
1957 | } | 1957 | } |
1958 | 1958 | ||
@@ -2111,7 +2111,7 @@ static s32 e1000_update_nvm_checksum_ich8lan(struct e1000_hw *hw) | |||
2111 | 2111 | ||
2112 | /* Great! Everything worked, we can now clear the cached entries. */ | 2112 | /* Great! Everything worked, we can now clear the cached entries. */ |
2113 | for (i = 0; i < E1000_ICH8_SHADOW_RAM_WORDS; i++) { | 2113 | for (i = 0; i < E1000_ICH8_SHADOW_RAM_WORDS; i++) { |
2114 | dev_spec->shadow_ram[i].modified = 0; | 2114 | dev_spec->shadow_ram[i].modified = false; |
2115 | dev_spec->shadow_ram[i].value = 0xFFFF; | 2115 | dev_spec->shadow_ram[i].value = 0xFFFF; |
2116 | } | 2116 | } |
2117 | 2117 | ||
@@ -3083,8 +3083,8 @@ static s32 e1000_kmrn_lock_loss_workaround_ich8lan(struct e1000_hw *hw) | |||
3083 | * @hw: pointer to the HW structure | 3083 | * @hw: pointer to the HW structure |
3084 | * @state: boolean value used to set the current Kumeran workaround state | 3084 | * @state: boolean value used to set the current Kumeran workaround state |
3085 | * | 3085 | * |
3086 | * If ICH8, set the current Kumeran workaround state (enabled - TRUE | 3086 | * If ICH8, set the current Kumeran workaround state (enabled - true |
3087 | * /disabled - FALSE). | 3087 | * /disabled - false). |
3088 | **/ | 3088 | **/ |
3089 | void e1000e_set_kmrn_lock_loss_workaround_ich8lan(struct e1000_hw *hw, | 3089 | void e1000e_set_kmrn_lock_loss_workaround_ich8lan(struct e1000_hw *hw, |
3090 | bool state) | 3090 | bool state) |