diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-12-02 09:53:28 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-12-03 13:52:00 -0500 |
commit | e6d227b97691584068675a624abe1bce4f9434cb (patch) | |
tree | fa10ee0dd93bbfe871804ab8eff122d3cd6d8d19 /drivers/net/wireless/rt2x00/rt2800lib.c | |
parent | 6dac3447425d932fa76a4e69d32eead9dd090b27 (diff) |
rt2x00: rt2800lib: fix indentation of some rt2x00_rt calls
The patch contains no functional changes.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Acked-by: Ivo van Doorn <IvDoorn@gmail.com>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2800lib.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2800lib.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c index c0441a715c96..3d7b74e90964 100644 --- a/drivers/net/wireless/rt2x00/rt2800lib.c +++ b/drivers/net/wireless/rt2x00/rt2800lib.c | |||
@@ -2173,7 +2173,7 @@ static void rt2800_config_channel_rf53xx(struct rt2x00_dev *rt2x00dev, | |||
2173 | rt2800_rfcsr_write(rt2x00dev, 59, | 2173 | rt2800_rfcsr_write(rt2x00dev, 59, |
2174 | r59_nonbt_rev[idx]); | 2174 | r59_nonbt_rev[idx]); |
2175 | } else if (rt2x00_rt(rt2x00dev, RT5390) || | 2175 | } else if (rt2x00_rt(rt2x00dev, RT5390) || |
2176 | rt2x00_rt(rt2x00dev, RT5392)) { | 2176 | rt2x00_rt(rt2x00dev, RT5392)) { |
2177 | static const char r59_non_bt[] = {0x8f, 0x8f, | 2177 | static const char r59_non_bt[] = {0x8f, 0x8f, |
2178 | 0x8f, 0x8f, 0x8f, 0x8f, 0x8f, 0x8d, | 2178 | 0x8f, 0x8f, 0x8f, 0x8f, 0x8f, 0x8d, |
2179 | 0x8a, 0x88, 0x88, 0x87, 0x87, 0x86}; | 2179 | 0x8a, 0x88, 0x88, 0x87, 0x87, 0x86}; |
@@ -2264,7 +2264,7 @@ static void rt2800_config_channel(struct rt2x00_dev *rt2x00dev, | |||
2264 | 2264 | ||
2265 | if (rf->channel <= 14) { | 2265 | if (rf->channel <= 14) { |
2266 | if (!rt2x00_rt(rt2x00dev, RT5390) && | 2266 | if (!rt2x00_rt(rt2x00dev, RT5390) && |
2267 | !rt2x00_rt(rt2x00dev, RT5392)) { | 2267 | !rt2x00_rt(rt2x00dev, RT5392)) { |
2268 | if (test_bit(CAPABILITY_EXTERNAL_LNA_BG, | 2268 | if (test_bit(CAPABILITY_EXTERNAL_LNA_BG, |
2269 | &rt2x00dev->cap_flags)) { | 2269 | &rt2x00dev->cap_flags)) { |
2270 | rt2800_bbp_write(rt2x00dev, 82, 0x62); | 2270 | rt2800_bbp_write(rt2x00dev, 82, 0x62); |
@@ -3592,8 +3592,8 @@ static int rt2800_init_bbp(struct rt2x00_dev *rt2x00dev) | |||
3592 | if (rt2x00_rt_rev(rt2x00dev, RT2860, REV_RT2860D)) | 3592 | if (rt2x00_rt_rev(rt2x00dev, RT2860, REV_RT2860D)) |
3593 | rt2800_bbp_write(rt2x00dev, 84, 0x19); | 3593 | rt2800_bbp_write(rt2x00dev, 84, 0x19); |
3594 | else if (rt2x00_rt(rt2x00dev, RT3290) || | 3594 | else if (rt2x00_rt(rt2x00dev, RT3290) || |
3595 | rt2x00_rt(rt2x00dev, RT5390) || | 3595 | rt2x00_rt(rt2x00dev, RT5390) || |
3596 | rt2x00_rt(rt2x00dev, RT5392)) | 3596 | rt2x00_rt(rt2x00dev, RT5392)) |
3597 | rt2800_bbp_write(rt2x00dev, 84, 0x9a); | 3597 | rt2800_bbp_write(rt2x00dev, 84, 0x9a); |
3598 | else | 3598 | else |
3599 | rt2800_bbp_write(rt2x00dev, 84, 0x99); | 3599 | rt2800_bbp_write(rt2x00dev, 84, 0x99); |
@@ -3652,7 +3652,7 @@ static int rt2800_init_bbp(struct rt2x00_dev *rt2x00dev) | |||
3652 | else if (rt2x00_rt(rt2x00dev, RT3352)) | 3652 | else if (rt2x00_rt(rt2x00dev, RT3352)) |
3653 | rt2800_bbp_write(rt2x00dev, 105, 0x34); | 3653 | rt2800_bbp_write(rt2x00dev, 105, 0x34); |
3654 | else if (rt2x00_rt(rt2x00dev, RT5390) || | 3654 | else if (rt2x00_rt(rt2x00dev, RT5390) || |
3655 | rt2x00_rt(rt2x00dev, RT5392)) | 3655 | rt2x00_rt(rt2x00dev, RT5392)) |
3656 | rt2800_bbp_write(rt2x00dev, 105, 0x3c); | 3656 | rt2800_bbp_write(rt2x00dev, 105, 0x3c); |
3657 | else | 3657 | else |
3658 | rt2800_bbp_write(rt2x00dev, 105, 0x05); | 3658 | rt2800_bbp_write(rt2x00dev, 105, 0x05); |
@@ -3746,7 +3746,7 @@ static int rt2800_init_bbp(struct rt2x00_dev *rt2x00dev) | |||
3746 | } | 3746 | } |
3747 | 3747 | ||
3748 | if (rt2x00_rt(rt2x00dev, RT5390) || | 3748 | if (rt2x00_rt(rt2x00dev, RT5390) || |
3749 | rt2x00_rt(rt2x00dev, RT5392)) { | 3749 | rt2x00_rt(rt2x00dev, RT5392)) { |
3750 | int ant, div_mode; | 3750 | int ant, div_mode; |
3751 | 3751 | ||
3752 | rt2x00_eeprom_read(rt2x00dev, EEPROM_NIC_CONF1, &eeprom); | 3752 | rt2x00_eeprom_read(rt2x00dev, EEPROM_NIC_CONF1, &eeprom); |
@@ -4356,7 +4356,7 @@ static int rt2800_init_rfcsr(struct rt2x00_dev *rt2x00dev) | |||
4356 | rt2800_bbp_read(rt2x00dev, 26, &drv_data->bbp26); | 4356 | rt2800_bbp_read(rt2x00dev, 26, &drv_data->bbp26); |
4357 | 4357 | ||
4358 | if (!rt2x00_rt(rt2x00dev, RT5390) && | 4358 | if (!rt2x00_rt(rt2x00dev, RT5390) && |
4359 | !rt2x00_rt(rt2x00dev, RT5392)) { | 4359 | !rt2x00_rt(rt2x00dev, RT5392)) { |
4360 | /* | 4360 | /* |
4361 | * Set back to initial state | 4361 | * Set back to initial state |
4362 | */ | 4362 | */ |
@@ -4385,7 +4385,7 @@ static int rt2800_init_rfcsr(struct rt2x00_dev *rt2x00dev) | |||
4385 | rt2800_register_write(rt2x00dev, OPT_14_CSR, reg); | 4385 | rt2800_register_write(rt2x00dev, OPT_14_CSR, reg); |
4386 | 4386 | ||
4387 | if (!rt2x00_rt(rt2x00dev, RT5390) && | 4387 | if (!rt2x00_rt(rt2x00dev, RT5390) && |
4388 | !rt2x00_rt(rt2x00dev, RT5392)) { | 4388 | !rt2x00_rt(rt2x00dev, RT5392)) { |
4389 | rt2800_rfcsr_read(rt2x00dev, 17, &rfcsr); | 4389 | rt2800_rfcsr_read(rt2x00dev, 17, &rfcsr); |
4390 | rt2x00_set_field8(&rfcsr, RFCSR17_TX_LO1_EN, 0); | 4390 | rt2x00_set_field8(&rfcsr, RFCSR17_TX_LO1_EN, 0); |
4391 | if (rt2x00_rt(rt2x00dev, RT3070) || | 4391 | if (rt2x00_rt(rt2x00dev, RT3070) || |
@@ -4457,7 +4457,7 @@ static int rt2800_init_rfcsr(struct rt2x00_dev *rt2x00dev) | |||
4457 | } | 4457 | } |
4458 | 4458 | ||
4459 | if (rt2x00_rt(rt2x00dev, RT5390) || | 4459 | if (rt2x00_rt(rt2x00dev, RT5390) || |
4460 | rt2x00_rt(rt2x00dev, RT5392)) { | 4460 | rt2x00_rt(rt2x00dev, RT5392)) { |
4461 | rt2800_rfcsr_read(rt2x00dev, 38, &rfcsr); | 4461 | rt2800_rfcsr_read(rt2x00dev, 38, &rfcsr); |
4462 | rt2x00_set_field8(&rfcsr, RFCSR38_RX_LO1_EN, 0); | 4462 | rt2x00_set_field8(&rfcsr, RFCSR38_RX_LO1_EN, 0); |
4463 | rt2800_rfcsr_write(rt2x00dev, 38, rfcsr); | 4463 | rt2800_rfcsr_write(rt2x00dev, 38, rfcsr); |