aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/debug.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/debug.c30
1 files changed, 20 insertions, 10 deletions
diff --git a/drivers/net/wireless/ath/ath9k/debug.c b/drivers/net/wireless/ath/ath9k/debug.c
index 7f764e3d1c0a..43e71a944cb1 100644
--- a/drivers/net/wireless/ath/ath9k/debug.c
+++ b/drivers/net/wireless/ath/ath9k/debug.c
@@ -71,7 +71,8 @@ static const struct file_operations fops_debug = {
71 .read = read_file_debug, 71 .read = read_file_debug,
72 .write = write_file_debug, 72 .write = write_file_debug,
73 .open = ath9k_debugfs_open, 73 .open = ath9k_debugfs_open,
74 .owner = THIS_MODULE 74 .owner = THIS_MODULE,
75 .llseek = default_llseek,
75}; 76};
76 77
77#endif 78#endif
@@ -116,7 +117,8 @@ static const struct file_operations fops_tx_chainmask = {
116 .read = read_file_tx_chainmask, 117 .read = read_file_tx_chainmask,
117 .write = write_file_tx_chainmask, 118 .write = write_file_tx_chainmask,
118 .open = ath9k_debugfs_open, 119 .open = ath9k_debugfs_open,
119 .owner = THIS_MODULE 120 .owner = THIS_MODULE,
121 .llseek = default_llseek,
120}; 122};
121 123
122 124
@@ -158,7 +160,8 @@ static const struct file_operations fops_rx_chainmask = {
158 .read = read_file_rx_chainmask, 160 .read = read_file_rx_chainmask,
159 .write = write_file_rx_chainmask, 161 .write = write_file_rx_chainmask,
160 .open = ath9k_debugfs_open, 162 .open = ath9k_debugfs_open,
161 .owner = THIS_MODULE 163 .owner = THIS_MODULE,
164 .llseek = default_llseek,
162}; 165};
163 166
164 167
@@ -259,7 +262,8 @@ static ssize_t read_file_dma(struct file *file, char __user *user_buf,
259static const struct file_operations fops_dma = { 262static const struct file_operations fops_dma = {
260 .read = read_file_dma, 263 .read = read_file_dma,
261 .open = ath9k_debugfs_open, 264 .open = ath9k_debugfs_open,
262 .owner = THIS_MODULE 265 .owner = THIS_MODULE,
266 .llseek = default_llseek,
263}; 267};
264 268
265 269
@@ -375,7 +379,8 @@ static ssize_t read_file_interrupt(struct file *file, char __user *user_buf,
375static const struct file_operations fops_interrupt = { 379static const struct file_operations fops_interrupt = {
376 .read = read_file_interrupt, 380 .read = read_file_interrupt,
377 .open = ath9k_debugfs_open, 381 .open = ath9k_debugfs_open,
378 .owner = THIS_MODULE 382 .owner = THIS_MODULE,
383 .llseek = default_llseek,
379}; 384};
380 385
381static const char * ath_wiphy_state_str(enum ath_wiphy_state state) 386static const char * ath_wiphy_state_str(enum ath_wiphy_state state)
@@ -572,7 +577,8 @@ static const struct file_operations fops_wiphy = {
572 .read = read_file_wiphy, 577 .read = read_file_wiphy,
573 .write = write_file_wiphy, 578 .write = write_file_wiphy,
574 .open = ath9k_debugfs_open, 579 .open = ath9k_debugfs_open,
575 .owner = THIS_MODULE 580 .owner = THIS_MODULE,
581 .llseek = default_llseek,
576}; 582};
577 583
578#define PR(str, elem) \ 584#define PR(str, elem) \
@@ -656,7 +662,8 @@ void ath_debug_stat_tx(struct ath_softc *sc, struct ath_txq *txq,
656static const struct file_operations fops_xmit = { 662static const struct file_operations fops_xmit = {
657 .read = read_file_xmit, 663 .read = read_file_xmit,
658 .open = ath9k_debugfs_open, 664 .open = ath9k_debugfs_open,
659 .owner = THIS_MODULE 665 .owner = THIS_MODULE,
666 .llseek = default_llseek,
660}; 667};
661 668
662static ssize_t read_file_recv(struct file *file, char __user *user_buf, 669static ssize_t read_file_recv(struct file *file, char __user *user_buf,
@@ -778,7 +785,8 @@ void ath_debug_stat_rx(struct ath_softc *sc, struct ath_rx_status *rs)
778static const struct file_operations fops_recv = { 785static const struct file_operations fops_recv = {
779 .read = read_file_recv, 786 .read = read_file_recv,
780 .open = ath9k_debugfs_open, 787 .open = ath9k_debugfs_open,
781 .owner = THIS_MODULE 788 .owner = THIS_MODULE,
789 .llseek = default_llseek,
782}; 790};
783 791
784static ssize_t read_file_regidx(struct file *file, char __user *user_buf, 792static ssize_t read_file_regidx(struct file *file, char __user *user_buf,
@@ -816,7 +824,8 @@ static const struct file_operations fops_regidx = {
816 .read = read_file_regidx, 824 .read = read_file_regidx,
817 .write = write_file_regidx, 825 .write = write_file_regidx,
818 .open = ath9k_debugfs_open, 826 .open = ath9k_debugfs_open,
819 .owner = THIS_MODULE 827 .owner = THIS_MODULE,
828 .llseek = default_llseek,
820}; 829};
821 830
822static ssize_t read_file_regval(struct file *file, char __user *user_buf, 831static ssize_t read_file_regval(struct file *file, char __user *user_buf,
@@ -858,7 +867,8 @@ static const struct file_operations fops_regval = {
858 .read = read_file_regval, 867 .read = read_file_regval,
859 .write = write_file_regval, 868 .write = write_file_regval,
860 .open = ath9k_debugfs_open, 869 .open = ath9k_debugfs_open,
861 .owner = THIS_MODULE 870 .owner = THIS_MODULE,
871 .llseek = default_llseek,
862}; 872};
863 873
864int ath9k_init_debug(struct ath_hw *ah) 874int ath9k_init_debug(struct ath_hw *ah)