diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2007-10-13 10:26:42 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:02:54 -0500 |
commit | ddc827f93a2f2a7dcfda5b691d046af4dfe76427 (patch) | |
tree | dfa0c0d573e18fcc95d15984d43dcff4a7d71564 /drivers/net/wireless/rt2x00/rt2500usb.h | |
parent | 69f81a2cac860cf183eb9ef7787525c3552d4612 (diff) |
[PATCH] rt2x00: Cleanup if-statements
Cleanup if-statements for simple 1/0 register field values.
This also fixes a endian bug in rt2500usb when working
with the PHY_CSR2 initialization. As well as a bug
in the enabling of the LED in rt73usb.
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2500usb.h')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2500usb.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2500usb.h b/drivers/net/wireless/rt2x00/rt2500usb.h index b18d56e73cf1..2741840fa14a 100644 --- a/drivers/net/wireless/rt2x00/rt2500usb.h +++ b/drivers/net/wireless/rt2x00/rt2500usb.h | |||
@@ -430,10 +430,21 @@ | |||
430 | 430 | ||
431 | /* | 431 | /* |
432 | * MAC configuration registers. | 432 | * MAC configuration registers. |
433 | */ | ||
434 | |||
435 | /* | ||
433 | * PHY_CSR2: TX MAC configuration. | 436 | * PHY_CSR2: TX MAC configuration. |
434 | * PHY_CSR3: RX MAC configuration. | 437 | * NOTE: Both register fields are complete dummy, |
438 | * documentation and legacy drivers are unclear un | ||
439 | * what this register means or what fields exists. | ||
435 | */ | 440 | */ |
436 | #define PHY_CSR2 0x04c4 | 441 | #define PHY_CSR2 0x04c4 |
442 | #define PHY_CSR2_LNA FIELD16(0x0002) | ||
443 | #define PHY_CSR2_LNA_MODE FIELD16(0x3000) | ||
444 | |||
445 | /* | ||
446 | * PHY_CSR3: RX MAC configuration. | ||
447 | */ | ||
437 | #define PHY_CSR3 0x04c6 | 448 | #define PHY_CSR3 0x04c6 |
438 | 449 | ||
439 | /* | 450 | /* |