]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: Separate routines for PCOEM and SoC calibration
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Fri, 15 Nov 2013 05:16:21 +0000 (10:46 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 2 Dec 2013 19:24:57 +0000 (14:24 -0500)
commitdd63f5195ab14f9fdabf68c5b8d951e04f5a275b
tree674e2c465613761aff9367473a07ea4626d0c165
parent7da3d401d0312f601832d0633aa2d7483cd8f631
ath9k: Separate routines for PCOEM and SoC calibration

Though there is some overlap between the calibration mechanisms
of PC-OEM cards and SoC chip families, dumping both of them
into a single function makes things hard to understand.

ar9003_hw_init_cal() is unreadable with chip-specific segments
scattered around. To make the logic understandable, use
different functions for client cards and SoC chips. Some
code is duplicated, but in the long run, it makes the code
more maintanable.

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ar9003_calib.c