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)
commit3b06c1d7af98f2fbc0c136b668568c873017bd54
tree674e2c465613761aff9367473a07ea4626d0c165
parent26f2a64abdeb44e488e2334d28a380a3ed5a504d
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