diff options
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r-- | drivers/net/wireless/ath/ath5k/debug.c | 7 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/debug.c | 33 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/htc_drv_main.c | 9 |
3 files changed, 35 insertions, 14 deletions
diff --git a/drivers/net/wireless/ath/ath5k/debug.c b/drivers/net/wireless/ath/ath5k/debug.c index 4cccc29964f6..fb339c3852ee 100644 --- a/drivers/net/wireless/ath/ath5k/debug.c +++ b/drivers/net/wireless/ath/ath5k/debug.c | |||
@@ -271,6 +271,7 @@ static const struct file_operations fops_beacon = { | |||
271 | .write = write_file_beacon, | 271 | .write = write_file_beacon, |
272 | .open = ath5k_debugfs_open, | 272 | .open = ath5k_debugfs_open, |
273 | .owner = THIS_MODULE, | 273 | .owner = THIS_MODULE, |
274 | .llseek = default_llseek, | ||
274 | }; | 275 | }; |
275 | 276 | ||
276 | 277 | ||
@@ -290,6 +291,7 @@ static const struct file_operations fops_reset = { | |||
290 | .write = write_file_reset, | 291 | .write = write_file_reset, |
291 | .open = ath5k_debugfs_open, | 292 | .open = ath5k_debugfs_open, |
292 | .owner = THIS_MODULE, | 293 | .owner = THIS_MODULE, |
294 | .llseek = noop_llseek, | ||
293 | }; | 295 | }; |
294 | 296 | ||
295 | 297 | ||
@@ -369,6 +371,7 @@ static const struct file_operations fops_debug = { | |||
369 | .write = write_file_debug, | 371 | .write = write_file_debug, |
370 | .open = ath5k_debugfs_open, | 372 | .open = ath5k_debugfs_open, |
371 | .owner = THIS_MODULE, | 373 | .owner = THIS_MODULE, |
374 | .llseek = default_llseek, | ||
372 | }; | 375 | }; |
373 | 376 | ||
374 | 377 | ||
@@ -480,6 +483,7 @@ static const struct file_operations fops_antenna = { | |||
480 | .write = write_file_antenna, | 483 | .write = write_file_antenna, |
481 | .open = ath5k_debugfs_open, | 484 | .open = ath5k_debugfs_open, |
482 | .owner = THIS_MODULE, | 485 | .owner = THIS_MODULE, |
486 | .llseek = default_llseek, | ||
483 | }; | 487 | }; |
484 | 488 | ||
485 | 489 | ||
@@ -591,6 +595,7 @@ static const struct file_operations fops_frameerrors = { | |||
591 | .write = write_file_frameerrors, | 595 | .write = write_file_frameerrors, |
592 | .open = ath5k_debugfs_open, | 596 | .open = ath5k_debugfs_open, |
593 | .owner = THIS_MODULE, | 597 | .owner = THIS_MODULE, |
598 | .llseek = default_llseek, | ||
594 | }; | 599 | }; |
595 | 600 | ||
596 | 601 | ||
@@ -748,6 +753,7 @@ static const struct file_operations fops_ani = { | |||
748 | .write = write_file_ani, | 753 | .write = write_file_ani, |
749 | .open = ath5k_debugfs_open, | 754 | .open = ath5k_debugfs_open, |
750 | .owner = THIS_MODULE, | 755 | .owner = THIS_MODULE, |
756 | .llseek = default_llseek, | ||
751 | }; | 757 | }; |
752 | 758 | ||
753 | 759 | ||
@@ -811,6 +817,7 @@ static const struct file_operations fops_queue = { | |||
811 | .write = write_file_queue, | 817 | .write = write_file_queue, |
812 | .open = ath5k_debugfs_open, | 818 | .open = ath5k_debugfs_open, |
813 | .owner = THIS_MODULE, | 819 | .owner = THIS_MODULE, |
820 | .llseek = default_llseek, | ||
814 | }; | 821 | }; |
815 | 822 | ||
816 | 823 | ||
diff --git a/drivers/net/wireless/ath/ath9k/debug.c b/drivers/net/wireless/ath/ath9k/debug.c index 54aae931424e..cf500bf25ad5 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, | |||
259 | static const struct file_operations fops_dma = { | 262 | static 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, | |||
375 | static const struct file_operations fops_interrupt = { | 379 | static 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 | ||
381 | void ath_debug_stat_rc(struct ath_softc *sc, int final_rate) | 386 | void ath_debug_stat_rc(struct ath_softc *sc, int final_rate) |
@@ -464,7 +469,8 @@ static ssize_t read_file_rcstat(struct file *file, char __user *user_buf, | |||
464 | static const struct file_operations fops_rcstat = { | 469 | static const struct file_operations fops_rcstat = { |
465 | .read = read_file_rcstat, | 470 | .read = read_file_rcstat, |
466 | .open = ath9k_debugfs_open, | 471 | .open = ath9k_debugfs_open, |
467 | .owner = THIS_MODULE | 472 | .owner = THIS_MODULE, |
473 | .llseek = default_llseek, | ||
468 | }; | 474 | }; |
469 | 475 | ||
470 | static const char * ath_wiphy_state_str(enum ath_wiphy_state state) | 476 | static const char * ath_wiphy_state_str(enum ath_wiphy_state state) |
@@ -623,7 +629,8 @@ static const struct file_operations fops_wiphy = { | |||
623 | .read = read_file_wiphy, | 629 | .read = read_file_wiphy, |
624 | .write = write_file_wiphy, | 630 | .write = write_file_wiphy, |
625 | .open = ath9k_debugfs_open, | 631 | .open = ath9k_debugfs_open, |
626 | .owner = THIS_MODULE | 632 | .owner = THIS_MODULE, |
633 | .llseek = default_llseek, | ||
627 | }; | 634 | }; |
628 | 635 | ||
629 | #define PR(str, elem) \ | 636 | #define PR(str, elem) \ |
@@ -702,7 +709,8 @@ void ath_debug_stat_tx(struct ath_softc *sc, struct ath_txq *txq, | |||
702 | static const struct file_operations fops_xmit = { | 709 | static const struct file_operations fops_xmit = { |
703 | .read = read_file_xmit, | 710 | .read = read_file_xmit, |
704 | .open = ath9k_debugfs_open, | 711 | .open = ath9k_debugfs_open, |
705 | .owner = THIS_MODULE | 712 | .owner = THIS_MODULE, |
713 | .llseek = default_llseek, | ||
706 | }; | 714 | }; |
707 | 715 | ||
708 | static ssize_t read_file_recv(struct file *file, char __user *user_buf, | 716 | static ssize_t read_file_recv(struct file *file, char __user *user_buf, |
@@ -814,7 +822,8 @@ void ath_debug_stat_rx(struct ath_softc *sc, struct ath_rx_status *rs) | |||
814 | static const struct file_operations fops_recv = { | 822 | static const struct file_operations fops_recv = { |
815 | .read = read_file_recv, | 823 | .read = read_file_recv, |
816 | .open = ath9k_debugfs_open, | 824 | .open = ath9k_debugfs_open, |
817 | .owner = THIS_MODULE | 825 | .owner = THIS_MODULE, |
826 | .llseek = default_llseek, | ||
818 | }; | 827 | }; |
819 | 828 | ||
820 | static ssize_t read_file_regidx(struct file *file, char __user *user_buf, | 829 | static ssize_t read_file_regidx(struct file *file, char __user *user_buf, |
@@ -852,7 +861,8 @@ static const struct file_operations fops_regidx = { | |||
852 | .read = read_file_regidx, | 861 | .read = read_file_regidx, |
853 | .write = write_file_regidx, | 862 | .write = write_file_regidx, |
854 | .open = ath9k_debugfs_open, | 863 | .open = ath9k_debugfs_open, |
855 | .owner = THIS_MODULE | 864 | .owner = THIS_MODULE, |
865 | .llseek = default_llseek, | ||
856 | }; | 866 | }; |
857 | 867 | ||
858 | static ssize_t read_file_regval(struct file *file, char __user *user_buf, | 868 | static ssize_t read_file_regval(struct file *file, char __user *user_buf, |
@@ -894,7 +904,8 @@ static const struct file_operations fops_regval = { | |||
894 | .read = read_file_regval, | 904 | .read = read_file_regval, |
895 | .write = write_file_regval, | 905 | .write = write_file_regval, |
896 | .open = ath9k_debugfs_open, | 906 | .open = ath9k_debugfs_open, |
897 | .owner = THIS_MODULE | 907 | .owner = THIS_MODULE, |
908 | .llseek = default_llseek, | ||
898 | }; | 909 | }; |
899 | 910 | ||
900 | int ath9k_init_debug(struct ath_hw *ah) | 911 | int ath9k_init_debug(struct ath_hw *ah) |
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_main.c b/drivers/net/wireless/ath/ath9k/htc_drv_main.c index 7d09b4b17bbd..bc2ca7d898e9 100644 --- a/drivers/net/wireless/ath/ath9k/htc_drv_main.c +++ b/drivers/net/wireless/ath/ath9k/htc_drv_main.c | |||
@@ -536,7 +536,8 @@ static ssize_t read_file_tgt_stats(struct file *file, char __user *user_buf, | |||
536 | static const struct file_operations fops_tgt_stats = { | 536 | static const struct file_operations fops_tgt_stats = { |
537 | .read = read_file_tgt_stats, | 537 | .read = read_file_tgt_stats, |
538 | .open = ath9k_debugfs_open, | 538 | .open = ath9k_debugfs_open, |
539 | .owner = THIS_MODULE | 539 | .owner = THIS_MODULE, |
540 | .llseek = default_llseek, | ||
540 | }; | 541 | }; |
541 | 542 | ||
542 | static ssize_t read_file_xmit(struct file *file, char __user *user_buf, | 543 | static ssize_t read_file_xmit(struct file *file, char __user *user_buf, |
@@ -584,7 +585,8 @@ static ssize_t read_file_xmit(struct file *file, char __user *user_buf, | |||
584 | static const struct file_operations fops_xmit = { | 585 | static const struct file_operations fops_xmit = { |
585 | .read = read_file_xmit, | 586 | .read = read_file_xmit, |
586 | .open = ath9k_debugfs_open, | 587 | .open = ath9k_debugfs_open, |
587 | .owner = THIS_MODULE | 588 | .owner = THIS_MODULE, |
589 | .llseek = default_llseek, | ||
588 | }; | 590 | }; |
589 | 591 | ||
590 | static ssize_t read_file_recv(struct file *file, char __user *user_buf, | 592 | static ssize_t read_file_recv(struct file *file, char __user *user_buf, |
@@ -613,7 +615,8 @@ static ssize_t read_file_recv(struct file *file, char __user *user_buf, | |||
613 | static const struct file_operations fops_recv = { | 615 | static const struct file_operations fops_recv = { |
614 | .read = read_file_recv, | 616 | .read = read_file_recv, |
615 | .open = ath9k_debugfs_open, | 617 | .open = ath9k_debugfs_open, |
616 | .owner = THIS_MODULE | 618 | .owner = THIS_MODULE, |
619 | .llseek = default_llseek, | ||
617 | }; | 620 | }; |
618 | 621 | ||
619 | int ath9k_htc_init_debug(struct ath_hw *ah) | 622 | int ath9k_htc_init_debug(struct ath_hw *ah) |