ath10k: move spectral related structures under ath10k debugfs
authorMohammed Shafi Shajakhan <mohammed@qti.qualcomm.com>
Tue, 26 Apr 2016 15:24:36 +0000 (20:54 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 6 May 2016 15:55:36 +0000 (18:55 +0300)
Spectral related structures are accessed / modified only if ath10k
debugfs is enabled, so it makes more sense to move them under
ATH10K_DEBUGFS

Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qti.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/core.h

index 1379054000f92cdebab4589c5bed0d47790610d4..ff8d2f997f835e9b490bf332b95a68f424fc7d98 100644 (file)
@@ -883,8 +883,6 @@ struct ath10k {
 
 #ifdef CONFIG_ATH10K_DEBUGFS
        struct ath10k_debug debug;
-#endif
-
        struct {
                /* relay(fs) channel for spectral scan */
                struct rchan *rfs_chan_spec_scan;
@@ -893,6 +891,7 @@ struct ath10k {
                enum ath10k_spectral_mode mode;
                struct ath10k_spec_scan config;
        } spectral;
+#endif
 
        struct {
                /* protected by conf_mutex */