All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ath11k: Cleanup in htt stats init function
@ 2019-06-13 11:59 Bhagavathi Perumal S
  2019-06-18 12:22 ` Kalle Valo
  0 siblings, 1 reply; 2+ messages in thread
From: Bhagavathi Perumal S @ 2019-06-13 11:59 UTC (permalink / raw)
  To: ath11k; +Cc: 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 <bperumal@codeaurora.org>
---
 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(-)

diff --git a/drivers/net/wireless/ath/ath11k/debug.c b/drivers/net/wireless/ath/ath11k/debug.c
index e22e1c8..1658bb7 100644
--- a/drivers/net/wireless/ath/ath11k/debug.c
+++ b/drivers/net/wireless/ath/ath11k/debug.c
@@ -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);
 
diff --git a/drivers/net/wireless/ath/ath11k/debug.h b/drivers/net/wireless/ath/ath11k/debug.h
index 13973d9..189205d 100644
--- a/drivers/net/wireless/ath/ath11k/debug.h
+++ b/drivers/net/wireless/ath/ath11k/debug.h
@@ -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)
 {
diff --git a/drivers/net/wireless/ath/ath11k/debug_htt_stats.c b/drivers/net/wireless/ath/ath11k/debug_htt_stats.c
index ac217d9..ae3814e 100644
--- a/drivers/net/wireless/ath/ath11k/debug_htt_stats.c
+++ b/drivers/net/wireless/ath/ath11k/debug_htt_stats.c
@@ -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,
diff --git a/drivers/net/wireless/ath/ath11k/debug_htt_stats.h b/drivers/net/wireless/ath/ath11k/debug_htt_stats.h
index a542bd3..ce49ca48 100644
--- a/drivers/net/wireless/ath/ath11k/debug_htt_stats.h
+++ b/drivers/net/wireless/ath/ath11k/debug_htt_stats.h
@@ -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
-- 
1.9.1


_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ath11k: Cleanup in htt stats init function
  2019-06-13 11:59 [PATCH] ath11k: Cleanup in htt stats init function Bhagavathi Perumal S
@ 2019-06-18 12:22 ` Kalle Valo
  0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2019-06-18 12:22 UTC (permalink / raw)
  To: Bhagavathi Perumal S; +Cc: ath11k

Bhagavathi Perumal S <bperumal@codeaurora.org> wrote:

> This renames htt stats init function and moves the function declaration
> into debug_htt_stats.h.
> 
> Signed-off-by: Bhagavathi Perumal S <bperumal@codeaurora.org>
> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>

Patch applied to ath11k-bringup branch of ath.git, thanks.

9e860dc9ab4a ath11k: Cleanup in htt stats init function

-- 
https://patchwork.kernel.org/patch/10991635/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches


_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-06-18 12:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-13 11:59 [PATCH] ath11k: Cleanup in htt stats init function Bhagavathi Perumal S
2019-06-18 12:22 ` Kalle Valo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.