rt2x00: rt2800lib: introduce RFCSR3_VCOCAL_EN
authorGabor Juhos <juhosg@openwrt.org>
Sun, 2 Dec 2012 17:34:47 +0000 (18:34 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 3 Dec 2012 18:52:01 +0000 (13:52 -0500)
commitd6d82020d07711f0095f2925bc1b9a28f94bb9b5
tree8d8eeb79fe557d98a91b7fd87739762942869b33
parentfc1b63d75d9551bbfaff178a3f191c3d05db8c6e
rt2x00: rt2800lib: introduce RFCSR3_VCOCAL_EN

On the RF3290,RF5360,RF5370,RF5372,RF5390,RF5392
radio frontends, the VCO calibration can be
controlled via the RFCSR3 register. The current
code uses the RFCSR30_RF_CALIBRATION constant to
enable the calibration, however that belongs to
the RFCSR30 register. Although the values of the
constant is correct, but using that for another
register is confusing.

Add a new definition for the VCO calibration enable
bit of the RFCSR3 register and use that in the
relevant places in order to avoid confusions.

The patch contains no functional changes.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2800.h
drivers/net/wireless/rt2x00/rt2800lib.c