diff options
Diffstat (limited to 'drivers/net/e1000e/phy.c')
-rw-r--r-- | drivers/net/e1000e/phy.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/net/e1000e/phy.c b/drivers/net/e1000e/phy.c index 3d3dc0c82355..6ad90ccb4bab 100644 --- a/drivers/net/e1000e/phy.c +++ b/drivers/net/e1000e/phy.c | |||
@@ -1840,11 +1840,12 @@ s32 e1000e_get_cable_length_igp_2(struct e1000_hw *hw) | |||
1840 | u16 phy_data, i, agc_value = 0; | 1840 | u16 phy_data, i, agc_value = 0; |
1841 | u16 cur_agc_index, max_agc_index = 0; | 1841 | u16 cur_agc_index, max_agc_index = 0; |
1842 | u16 min_agc_index = IGP02E1000_CABLE_LENGTH_TABLE_SIZE - 1; | 1842 | u16 min_agc_index = IGP02E1000_CABLE_LENGTH_TABLE_SIZE - 1; |
1843 | u16 agc_reg_array[IGP02E1000_PHY_CHANNEL_NUM] = | 1843 | static const u16 agc_reg_array[IGP02E1000_PHY_CHANNEL_NUM] = { |
1844 | {IGP02E1000_PHY_AGC_A, | 1844 | IGP02E1000_PHY_AGC_A, |
1845 | IGP02E1000_PHY_AGC_B, | 1845 | IGP02E1000_PHY_AGC_B, |
1846 | IGP02E1000_PHY_AGC_C, | 1846 | IGP02E1000_PHY_AGC_C, |
1847 | IGP02E1000_PHY_AGC_D}; | 1847 | IGP02E1000_PHY_AGC_D |
1848 | }; | ||
1848 | 1849 | ||
1849 | /* Read the AGC registers for all channels */ | 1850 | /* Read the AGC registers for all channels */ |
1850 | for (i = 0; i < IGP02E1000_PHY_CHANNEL_NUM; i++) { | 1851 | for (i = 0; i < IGP02E1000_PHY_CHANNEL_NUM; i++) { |