]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit205917e5c383703a2e71e7727ce6cd5319208acb
tree8d8eeb79fe557d98a91b7fd87739762942869b33
parent2e59f5138d18715fe5c7cfe348e7c9a73e4d7285
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