aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/e1000e/82571.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/e1000e/82571.c')
-rw-r--r--drivers/net/e1000e/82571.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/e1000e/82571.c b/drivers/net/e1000e/82571.c
index 0e8aa3441b97..468dd7d4fcad 100644
--- a/drivers/net/e1000e/82571.c
+++ b/drivers/net/e1000e/82571.c
@@ -230,7 +230,8 @@ static s32 e1000_init_mac_params_82571(struct e1000_adapter *adapter)
230 /* Set rar entry count */ 230 /* Set rar entry count */
231 mac->rar_entry_count = E1000_RAR_ENTRIES; 231 mac->rar_entry_count = E1000_RAR_ENTRIES;
232 /* Set if manageability features are enabled. */ 232 /* Set if manageability features are enabled. */
233 mac->arc_subsystem_valid = (er32(FWSM) & E1000_FWSM_MODE_MASK) ? 1 : 0; 233 mac->arc_subsystem_valid = (er32(FWSM) & E1000_FWSM_MODE_MASK)
234 ? true : false;
234 235
235 /* check for link */ 236 /* check for link */
236 switch (hw->phy.media_type) { 237 switch (hw->phy.media_type) {
@@ -753,7 +754,7 @@ static s32 e1000_get_cfg_done_82571(struct e1000_hw *hw)
753/** 754/**
754 * e1000_set_d0_lplu_state_82571 - Set Low Power Linkup D0 state 755 * e1000_set_d0_lplu_state_82571 - Set Low Power Linkup D0 state
755 * @hw: pointer to the HW structure 756 * @hw: pointer to the HW structure
756 * @active: TRUE to enable LPLU, FALSE to disable 757 * @active: true to enable LPLU, false to disable
757 * 758 *
758 * Sets the LPLU D0 state according to the active flag. When activating LPLU 759 * Sets the LPLU D0 state according to the active flag. When activating LPLU
759 * this function also disables smart speed and vice versa. LPLU will not be 760 * this function also disables smart speed and vice versa. LPLU will not be
@@ -1521,7 +1522,7 @@ static s32 e1000_valid_led_default_82571(struct e1000_hw *hw, u16 *data)
1521bool e1000e_get_laa_state_82571(struct e1000_hw *hw) 1522bool e1000e_get_laa_state_82571(struct e1000_hw *hw)
1522{ 1523{
1523 if (hw->mac.type != e1000_82571) 1524 if (hw->mac.type != e1000_82571)
1524 return 0; 1525 return false;
1525 1526
1526 return hw->dev_spec.e82571.laa_is_present; 1527 return hw->dev_spec.e82571.laa_is_present;
1527} 1528}