ath11k: Cleanup in htt stats init function
PATCH 1/1 ath11k: Cleanup in htt stats init function
This renames htt stats init function and moves the function declaration into debug_htt_stats.h.
Signed-off-by Bhagavathi Perumal S <[email protected]>
--- drivers/net/wireless/ath/ath11k/debug.c | 3 ++- drivers/net/wireless/ath/ath11k/debug.h | 5 ----- drivers/net/wireless/ath/ath11k/debug_htt_stats.c | 2 +- drivers/net/wireless/ath/ath11k/debug_htt_stats.h | 2 ++ 4 files changed, 5 insertions(+), 7 deletions(-)
drivers/net/wireless/ath/ath11k/debug.c +2 -1
@@ -9,6 +9,7 @@#include "wmi.h" #include "hal_rx.h" #include "dp_tx.h" +#include "debug_htt_stats.h" void ath11k_info (struct ath11k_base *sc,const char *fmt, ...) {
@@ -1145,7 +1146,7 @@ int ath11k_debug_register(struct ath11k *ar)snprintf (buf,100 ,"../../%pd2" , ar->debug.debugfs_pdev);debugfs_create_symlink ("ath11k" , ar->hw->wiphy->debugfsdir, buf); -ath11k_htt_stats_debugfs_init (ar); +ath11k_debug_htt_stats_init (ar);ath11k_debug_fw_stats_init (ar);
drivers/net/wireless/ath/ath11k/debug.h +0 -5
@@ -139,7 +139,6 @@ static inline void ath11k_dbg_dump(struct ath11k_base *ab,void ath11k_debug_soc_destroy (struct ath11k_base *sc);int ath11k_debug_register (struct ath11k *ar);void ath11k_debug_unregister (struct ath11k *ar); -void ath11k_htt_stats_debugfs_init (struct ath11k *ar);void ath11k_dbg_htt_ext_stats_handler (struct ath11k_base *ab,struct sk_buff *skb); void ath11k_debug_fw_stats_process(struct ath11k_base *ab, u8 *evt_buf,
@@ -193,10 +192,6 @@ static inline void ath11k_debug_unregister(struct ath11k *ar) { } -static inline void ath11k_htt_stats_debugfs_init (struct ath11k *ar) -{ -} -static inline void ath11k_dbg_htt_ext_stats_handler (struct ath11k_base *ab,struct sk_buff *skb) {
drivers/net/wireless/ath/ath11k/debug_htt_stats.c +1 -1
@@ -4482,7 +4482,7 @@ static ssize_t ath11k_write_htt_stats_reset(struct file *file, .llseek = default_llseek, }; -void ath11k_htt_stats_debugfs_init (struct ath11k *ar) +void ath11k_debug_htt_stats_init (struct ath11k *ar) {spin_lock_init (&ar->debug.htt_stats.lock); debugfs_create_file("htt_stats_type", 0600, ar->debug.debugfs_pdev,
drivers/net/wireless/ath/ath11k/debug_htt_stats.h +2 -0
@@ -1612,4 +1612,6 @@ struct htt_pdev_obss_pd_stats_tlv {u32 num_obss_tx_ppdu_success; u32 num_obss_tx_ppdu_failure; }; + +void ath11k_debug_htt_stats_init (struct ath11k *ar);#endif
Signature · 7 lines
1.9.1 _______________________________________________ ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k
Quoted 5 lines · Bhagavathi Perumal S
This renames htt stats init function and moves the function declaration into
debug_htt_stats.h.Signed-off-by Bhagavathi Perumal S <[email protected]>Signed-off-by Kalle Valo <[email protected]>
Patch applied to ath11k-bringup branch of ath.git, thanks.
9e860dc9ab4a ath11k: Cleanup in htt stats init function
Signature · 9 lines
https://patchwork.kernel.org/patch/10991635/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches _______________________________________________ ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k