[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>
This commit is contained in:
committed by
David S. Miller
parent
69f81a2cac
commit
ddc827f93a
@ -430,10 +430,21 @@
|
||||
|
||||
/*
|
||||
* MAC configuration registers.
|
||||
*/
|
||||
|
||||
/*
|
||||
* PHY_CSR2: TX MAC configuration.
|
||||
* PHY_CSR3: RX MAC configuration.
|
||||
* NOTE: Both register fields are complete dummy,
|
||||
* documentation and legacy drivers are unclear un
|
||||
* what this register means or what fields exists.
|
||||
*/
|
||||
#define PHY_CSR2 0x04c4
|
||||
#define PHY_CSR2_LNA FIELD16(0x0002)
|
||||
#define PHY_CSR2_LNA_MODE FIELD16(0x3000)
|
||||
|
||||
/*
|
||||
* PHY_CSR3: RX MAC configuration.
|
||||
*/
|
||||
#define PHY_CSR3 0x04c6
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user