diff options
author | Helmut Schaa <helmut.schaa@googlemail.com> | 2011-03-28 07:32:32 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-04-04 16:20:03 -0400 |
commit | fa71a160272c0eec9c04102ab2a82befb7cb107f (patch) | |
tree | 28dfc34350a2cc5616cf28a2d345a63a4a332093 /drivers | |
parent | 2af242e19f06cfaade7ac8608c9df8af1e0fbb34 (diff) |
rt2x00: Indention cleanup in rt2800lib
Fix the indention in rt2800_compesate_txpower and also fix a typo in
the function name rt2800_compesate_txpower -> rt2800_compensate_txpower.
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2800lib.c | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c index 26ac8927a7c5..026513349370 100644 --- a/drivers/net/wireless/rt2x00/rt2800lib.c +++ b/drivers/net/wireless/rt2x00/rt2800lib.c | |||
@@ -1857,12 +1857,9 @@ static int rt2800_get_txpower_bw_comp(struct rt2x00_dev *rt2x00dev, | |||
1857 | return comp_value; | 1857 | return comp_value; |
1858 | } | 1858 | } |
1859 | 1859 | ||
1860 | static u8 rt2800_compesate_txpower(struct rt2x00_dev *rt2x00dev, | 1860 | static u8 rt2800_compensate_txpower(struct rt2x00_dev *rt2x00dev, int is_rate_b, |
1861 | int is_rate_b, | 1861 | enum ieee80211_band band, int power_level, |
1862 | enum ieee80211_band band, | 1862 | u8 txpower, int delta) |
1863 | int power_level, | ||
1864 | u8 txpower, | ||
1865 | int delta) | ||
1866 | { | 1863 | { |
1867 | u32 reg; | 1864 | u32 reg; |
1868 | u16 eeprom; | 1865 | u16 eeprom; |
@@ -1951,7 +1948,7 @@ static void rt2800_config_txpower(struct rt2x00_dev *rt2x00dev, | |||
1951 | */ | 1948 | */ |
1952 | txpower = rt2x00_get_field16(eeprom, | 1949 | txpower = rt2x00_get_field16(eeprom, |
1953 | EEPROM_TXPOWER_BYRATE_RATE0); | 1950 | EEPROM_TXPOWER_BYRATE_RATE0); |
1954 | txpower = rt2800_compesate_txpower(rt2x00dev, is_rate_b, band, | 1951 | txpower = rt2800_compensate_txpower(rt2x00dev, is_rate_b, band, |
1955 | power_level, txpower, delta); | 1952 | power_level, txpower, delta); |
1956 | rt2x00_set_field32(®, TX_PWR_CFG_RATE0, txpower); | 1953 | rt2x00_set_field32(®, TX_PWR_CFG_RATE0, txpower); |
1957 | 1954 | ||
@@ -1962,7 +1959,7 @@ static void rt2800_config_txpower(struct rt2x00_dev *rt2x00dev, | |||
1962 | */ | 1959 | */ |
1963 | txpower = rt2x00_get_field16(eeprom, | 1960 | txpower = rt2x00_get_field16(eeprom, |
1964 | EEPROM_TXPOWER_BYRATE_RATE1); | 1961 | EEPROM_TXPOWER_BYRATE_RATE1); |
1965 | txpower = rt2800_compesate_txpower(rt2x00dev, is_rate_b, band, | 1962 | txpower = rt2800_compensate_txpower(rt2x00dev, is_rate_b, band, |
1966 | power_level, txpower, delta); | 1963 | power_level, txpower, delta); |
1967 | rt2x00_set_field32(®, TX_PWR_CFG_RATE1, txpower); | 1964 | rt2x00_set_field32(®, TX_PWR_CFG_RATE1, txpower); |
1968 | 1965 | ||
@@ -1973,7 +1970,7 @@ static void rt2800_config_txpower(struct rt2x00_dev *rt2x00dev, | |||
1973 | */ | 1970 | */ |
1974 | txpower = rt2x00_get_field16(eeprom, | 1971 | txpower = rt2x00_get_field16(eeprom, |
1975 | EEPROM_TXPOWER_BYRATE_RATE2); | 1972 | EEPROM_TXPOWER_BYRATE_RATE2); |
1976 | txpower = rt2800_compesate_txpower(rt2x00dev, is_rate_b, band, | 1973 | txpower = rt2800_compensate_txpower(rt2x00dev, is_rate_b, band, |
1977 | power_level, txpower, delta); | 1974 | power_level, txpower, delta); |
1978 | rt2x00_set_field32(®, TX_PWR_CFG_RATE2, txpower); | 1975 | rt2x00_set_field32(®, TX_PWR_CFG_RATE2, txpower); |
1979 | 1976 | ||
@@ -1984,7 +1981,7 @@ static void rt2800_config_txpower(struct rt2x00_dev *rt2x00dev, | |||
1984 | */ | 1981 | */ |
1985 | txpower = rt2x00_get_field16(eeprom, | 1982 | txpower = rt2x00_get_field16(eeprom, |
1986 | EEPROM_TXPOWER_BYRATE_RATE3); | 1983 | EEPROM_TXPOWER_BYRATE_RATE3); |
1987 | txpower = rt2800_compesate_txpower(rt2x00dev, is_rate_b, band, | 1984 | txpower = rt2800_compensate_txpower(rt2x00dev, is_rate_b, band, |
1988 | power_level, txpower, delta); | 1985 | power_level, txpower, delta); |
1989 | rt2x00_set_field32(®, TX_PWR_CFG_RATE3, txpower); | 1986 | rt2x00_set_field32(®, TX_PWR_CFG_RATE3, txpower); |
1990 | 1987 | ||
@@ -2000,7 +1997,7 @@ static void rt2800_config_txpower(struct rt2x00_dev *rt2x00dev, | |||
2000 | */ | 1997 | */ |
2001 | txpower = rt2x00_get_field16(eeprom, | 1998 | txpower = rt2x00_get_field16(eeprom, |
2002 | EEPROM_TXPOWER_BYRATE_RATE0); | 1999 | EEPROM_TXPOWER_BYRATE_RATE0); |
2003 | txpower = rt2800_compesate_txpower(rt2x00dev, is_rate_b, band, | 2000 | txpower = rt2800_compensate_txpower(rt2x00dev, is_rate_b, band, |
2004 | power_level, txpower, delta); | 2001 | power_level, txpower, delta); |
2005 | rt2x00_set_field32(®, TX_PWR_CFG_RATE4, txpower); | 2002 | rt2x00_set_field32(®, TX_PWR_CFG_RATE4, txpower); |
2006 | 2003 | ||
@@ -2011,7 +2008,7 @@ static void rt2800_config_txpower(struct rt2x00_dev *rt2x00dev, | |||
2011 | */ | 2008 | */ |
2012 | txpower = rt2x00_get_field16(eeprom, | 2009 | txpower = rt2x00_get_field16(eeprom, |
2013 | EEPROM_TXPOWER_BYRATE_RATE1); | 2010 | EEPROM_TXPOWER_BYRATE_RATE1); |
2014 | txpower = rt2800_compesate_txpower(rt2x00dev, is_rate_b, band, | 2011 | txpower = rt2800_compensate_txpower(rt2x00dev, is_rate_b, band, |
2015 | power_level, txpower, delta); | 2012 | power_level, txpower, delta); |
2016 | rt2x00_set_field32(®, TX_PWR_CFG_RATE5, txpower); | 2013 | rt2x00_set_field32(®, TX_PWR_CFG_RATE5, txpower); |
2017 | 2014 | ||
@@ -2022,7 +2019,7 @@ static void rt2800_config_txpower(struct rt2x00_dev *rt2x00dev, | |||
2022 | */ | 2019 | */ |
2023 | txpower = rt2x00_get_field16(eeprom, | 2020 | txpower = rt2x00_get_field16(eeprom, |
2024 | EEPROM_TXPOWER_BYRATE_RATE2); | 2021 | EEPROM_TXPOWER_BYRATE_RATE2); |
2025 | txpower = rt2800_compesate_txpower(rt2x00dev, is_rate_b, band, | 2022 | txpower = rt2800_compensate_txpower(rt2x00dev, is_rate_b, band, |
2026 | power_level, txpower, delta); | 2023 | power_level, txpower, delta); |
2027 | rt2x00_set_field32(®, TX_PWR_CFG_RATE6, txpower); | 2024 | rt2x00_set_field32(®, TX_PWR_CFG_RATE6, txpower); |
2028 | 2025 | ||
@@ -2033,7 +2030,7 @@ static void rt2800_config_txpower(struct rt2x00_dev *rt2x00dev, | |||
2033 | */ | 2030 | */ |
2034 | txpower = rt2x00_get_field16(eeprom, | 2031 | txpower = rt2x00_get_field16(eeprom, |
2035 | EEPROM_TXPOWER_BYRATE_RATE3); | 2032 | EEPROM_TXPOWER_BYRATE_RATE3); |
2036 | txpower = rt2800_compesate_txpower(rt2x00dev, is_rate_b, band, | 2033 | txpower = rt2800_compensate_txpower(rt2x00dev, is_rate_b, band, |
2037 | power_level, txpower, delta); | 2034 | power_level, txpower, delta); |
2038 | rt2x00_set_field32(®, TX_PWR_CFG_RATE7, txpower); | 2035 | rt2x00_set_field32(®, TX_PWR_CFG_RATE7, txpower); |
2039 | 2036 | ||