aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/hw-ops.h
diff options
context:
space:
mode:
authorSujith Manoharan <c_manoha@qca.qualcomm.com>2013-12-27 23:17:10 -0500
committerJohn W. Linville <linville@tuxdriver.com>2014-01-03 15:36:58 -0500
commite4ef2763039ec6ccd727b29d461e56414bf5425e (patch)
tree891a0b13da2d7cf3046ff69c7fc6281abdcf282b /drivers/net/wireless/ath/ath9k/hw-ops.h
parent1dd9619a21b7a334f84f35524aed1c39c5087b3b (diff)
ath9k: Move private HW callbacks to hw-ops.h
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/hw-ops.h')
-rw-r--r--drivers/net/wireless/ath/ath9k/hw-ops.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw-ops.h b/drivers/net/wireless/ath/ath9k/hw-ops.h
index 0b2550a91c7c..a47ea8423f1e 100644
--- a/drivers/net/wireless/ath/ath9k/hw-ops.h
+++ b/drivers/net/wireless/ath/ath9k/hw-ops.h
@@ -247,4 +247,31 @@ static inline void ath9k_hw_set_radar_params(struct ath_hw *ah)
247 ath9k_hw_private_ops(ah)->set_radar_params(ah, &ah->radar_conf); 247 ath9k_hw_private_ops(ah)->set_radar_params(ah, &ah->radar_conf);
248} 248}
249 249
250static inline void ath9k_hw_init_cal_settings(struct ath_hw *ah)
251{
252 ath9k_hw_private_ops(ah)->init_cal_settings(ah);
253}
254
255static inline u32 ath9k_hw_compute_pll_control(struct ath_hw *ah,
256 struct ath9k_channel *chan)
257{
258 return ath9k_hw_private_ops(ah)->compute_pll_control(ah, chan);
259}
260
261static inline void ath9k_hw_init_mode_gain_regs(struct ath_hw *ah)
262{
263 if (!ath9k_hw_private_ops(ah)->init_mode_gain_regs)
264 return;
265
266 ath9k_hw_private_ops(ah)->init_mode_gain_regs(ah);
267}
268
269static inline void ath9k_hw_ani_cache_ini_regs(struct ath_hw *ah)
270{
271 if (!ath9k_hw_private_ops(ah)->ani_cache_ini_regs)
272 return;
273
274 ath9k_hw_private_ops(ah)->ani_cache_ini_regs(ah);
275}
276
250#endif /* ATH9K_HW_OPS_H */ 277#endif /* ATH9K_HW_OPS_H */