diff mbox series

[15/15] ath11k: debug_htt_stats: move fops structs close to the functions

Message ID 156534288863.30736.6802391040553041619.stgit@x230 (mailing list archive)
State Accepted
Commit 2e1a3ed0437e5586675da5ecedf2cd567cc1cdf2
Delegated to: Kalle Valo
Headers show
Series [01/15] ath11k: rename per_transfer_context to skb | expand

Commit Message

Kalle Valo Aug. 9, 2019, 9:28 a.m. UTC
For readibility fops structures should be right after the actual functions,
move them in correct place.

No functional changes, compile tested only.

Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
---
 drivers/net/wireless/ath/ath11k/debug_htt_stats.c |   32 +++++++++++----------
 1 file changed, 16 insertions(+), 16 deletions(-)
diff mbox series

Patch

diff --git a/drivers/net/wireless/ath/ath11k/debug_htt_stats.c b/drivers/net/wireless/ath/ath11k/debug_htt_stats.c
index 4e2894ee3cc6..838c17f3dad2 100644
--- a/drivers/net/wireless/ath/ath11k/debug_htt_stats.c
+++ b/drivers/net/wireless/ath/ath11k/debug_htt_stats.c
@@ -4203,6 +4203,14 @@  static ssize_t ath11k_write_htt_stats_type(struct file *file,
 	return ret;
 }
 
+static const struct file_operations fops_htt_stats_type = {
+	.read = ath11k_read_htt_stats_type,
+	.write = ath11k_write_htt_stats_type,
+	.open = simple_open,
+	.owner = THIS_MODULE,
+	.llseek = default_llseek,
+};
+
 static int ath11k_prep_htt_stats_cfg_params(struct ath11k *ar, u8 type,
 					    const u8 *mac_addr,
 					    struct htt_ext_stats_cfg_params *cfg_params)
@@ -4345,6 +4353,14 @@  static ssize_t ath11k_read_htt_stats(struct file *file,
 	return simple_read_from_buffer(user_buf, count, ppos, buf, length);
 }
 
+static const struct file_operations fops_dump_htt_stats = {
+	.open = ath11k_open_htt_stats,
+	.release = ath11k_release_htt_stats,
+	.read = ath11k_read_htt_stats,
+	.owner = THIS_MODULE,
+	.llseek = default_llseek,
+};
+
 static ssize_t ath11k_read_htt_stats_reset(struct file *file,
 					   char __user *user_buf,
 					   size_t count, loff_t *ppos)
@@ -4396,22 +4412,6 @@  static ssize_t ath11k_write_htt_stats_reset(struct file *file,
 	return ret;
 }
 
-static const struct file_operations fops_htt_stats_type = {
-	.read = ath11k_read_htt_stats_type,
-	.write = ath11k_write_htt_stats_type,
-	.open = simple_open,
-	.owner = THIS_MODULE,
-	.llseek = default_llseek,
-};
-
-static const struct file_operations fops_dump_htt_stats = {
-	.open = ath11k_open_htt_stats,
-	.release = ath11k_release_htt_stats,
-	.read = ath11k_read_htt_stats,
-	.owner = THIS_MODULE,
-	.llseek = default_llseek,
-};
-
 static const struct file_operations fops_htt_stats_reset = {
 	.read = ath11k_read_htt_stats_reset,
 	.write = ath11k_write_htt_stats_reset,