diff options
author | Stanislaw Gruszka <sgruszka@redhat.com> | 2011-11-15 08:51:01 -0500 |
---|---|---|
committer | Stanislaw Gruszka <sgruszka@redhat.com> | 2011-11-15 08:51:01 -0500 |
commit | 1722f8e12a9c6117d872bd19ec5919460ccdfb4e (patch) | |
tree | 8f40a7240155e074c1a8f01927821c4a16eabe70 /drivers/net/wireless/iwlegacy/debug.c | |
parent | e7392364fcd1004a5e495f15cf21b1e0ef874215 (diff) |
iwlegacy: checkpatch.pl fixes
Fix most checkpatch.pl ERRORs and some WARNINGs.
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Diffstat (limited to 'drivers/net/wireless/iwlegacy/debug.c')
-rw-r--r-- | drivers/net/wireless/iwlegacy/debug.c | 172 |
1 files changed, 84 insertions, 88 deletions
diff --git a/drivers/net/wireless/iwlegacy/debug.c b/drivers/net/wireless/iwlegacy/debug.c index e79794a7e326..928bdbb00085 100644 --- a/drivers/net/wireless/iwlegacy/debug.c +++ b/drivers/net/wireless/iwlegacy/debug.c | |||
@@ -71,35 +71,35 @@ il_dbgfs_open_file_generic(struct inode *inode, struct file *file) | |||
71 | return 0; | 71 | return 0; |
72 | } | 72 | } |
73 | 73 | ||
74 | #define DEBUGFS_READ_FILE_OPS(name) \ | 74 | #define DEBUGFS_READ_FILE_OPS(name) \ |
75 | DEBUGFS_READ_FUNC(name); \ | 75 | DEBUGFS_READ_FUNC(name); \ |
76 | static const struct file_operations il_dbgfs_##name##_ops = { \ | 76 | static const struct file_operations il_dbgfs_##name##_ops = { \ |
77 | .read = il_dbgfs_##name##_read, \ | 77 | .read = il_dbgfs_##name##_read, \ |
78 | .open = il_dbgfs_open_file_generic, \ | 78 | .open = il_dbgfs_open_file_generic, \ |
79 | .llseek = generic_file_llseek, \ | 79 | .llseek = generic_file_llseek, \ |
80 | }; | 80 | }; |
81 | 81 | ||
82 | #define DEBUGFS_WRITE_FILE_OPS(name) \ | 82 | #define DEBUGFS_WRITE_FILE_OPS(name) \ |
83 | DEBUGFS_WRITE_FUNC(name); \ | 83 | DEBUGFS_WRITE_FUNC(name); \ |
84 | static const struct file_operations il_dbgfs_##name##_ops = { \ | 84 | static const struct file_operations il_dbgfs_##name##_ops = { \ |
85 | .write = il_dbgfs_##name##_write, \ | 85 | .write = il_dbgfs_##name##_write, \ |
86 | .open = il_dbgfs_open_file_generic, \ | 86 | .open = il_dbgfs_open_file_generic, \ |
87 | .llseek = generic_file_llseek, \ | 87 | .llseek = generic_file_llseek, \ |
88 | }; | 88 | }; |
89 | 89 | ||
90 | #define DEBUGFS_READ_WRITE_FILE_OPS(name) \ | 90 | #define DEBUGFS_READ_WRITE_FILE_OPS(name) \ |
91 | DEBUGFS_READ_FUNC(name); \ | 91 | DEBUGFS_READ_FUNC(name); \ |
92 | DEBUGFS_WRITE_FUNC(name); \ | 92 | DEBUGFS_WRITE_FUNC(name); \ |
93 | static const struct file_operations il_dbgfs_##name##_ops = { \ | 93 | static const struct file_operations il_dbgfs_##name##_ops = { \ |
94 | .write = il_dbgfs_##name##_write, \ | 94 | .write = il_dbgfs_##name##_write, \ |
95 | .read = il_dbgfs_##name##_read, \ | 95 | .read = il_dbgfs_##name##_read, \ |
96 | .open = il_dbgfs_open_file_generic, \ | 96 | .open = il_dbgfs_open_file_generic, \ |
97 | .llseek = generic_file_llseek, \ | 97 | .llseek = generic_file_llseek, \ |
98 | }; | 98 | }; |
99 | 99 | ||
100 | static ssize_t | 100 | static ssize_t |
101 | il_dbgfs_tx_stats_read(struct file *file, char __user * user_buf, size_t count, | 101 | il_dbgfs_tx_stats_read(struct file *file, char __user *user_buf, size_t count, |
102 | loff_t * ppos) | 102 | loff_t *ppos) |
103 | { | 103 | { |
104 | 104 | ||
105 | struct il_priv *il = file->private_data; | 105 | struct il_priv *il = file->private_data; |
@@ -139,8 +139,8 @@ il_dbgfs_tx_stats_read(struct file *file, char __user * user_buf, size_t count, | |||
139 | 139 | ||
140 | static ssize_t | 140 | static ssize_t |
141 | il_dbgfs_clear_traffic_stats_write(struct file *file, | 141 | il_dbgfs_clear_traffic_stats_write(struct file *file, |
142 | const char __user * user_buf, size_t count, | 142 | const char __user *user_buf, size_t count, |
143 | loff_t * ppos) | 143 | loff_t *ppos) |
144 | { | 144 | { |
145 | struct il_priv *il = file->private_data; | 145 | struct il_priv *il = file->private_data; |
146 | u32 clear_flag; | 146 | u32 clear_flag; |
@@ -159,8 +159,8 @@ il_dbgfs_clear_traffic_stats_write(struct file *file, | |||
159 | } | 159 | } |
160 | 160 | ||
161 | static ssize_t | 161 | static ssize_t |
162 | il_dbgfs_rx_stats_read(struct file *file, char __user * user_buf, size_t count, | 162 | il_dbgfs_rx_stats_read(struct file *file, char __user *user_buf, size_t count, |
163 | loff_t * ppos) | 163 | loff_t *ppos) |
164 | { | 164 | { |
165 | 165 | ||
166 | struct il_priv *il = file->private_data; | 166 | struct il_priv *il = file->private_data; |
@@ -203,8 +203,8 @@ il_dbgfs_rx_stats_read(struct file *file, char __user * user_buf, size_t count, | |||
203 | #define BYTE2_MASK 0x0000ffff; | 203 | #define BYTE2_MASK 0x0000ffff; |
204 | #define BYTE3_MASK 0x00ffffff; | 204 | #define BYTE3_MASK 0x00ffffff; |
205 | static ssize_t | 205 | static ssize_t |
206 | il_dbgfs_sram_read(struct file *file, char __user * user_buf, size_t count, | 206 | il_dbgfs_sram_read(struct file *file, char __user *user_buf, size_t count, |
207 | loff_t * ppos) | 207 | loff_t *ppos) |
208 | { | 208 | { |
209 | u32 val; | 209 | u32 val; |
210 | char *buf; | 210 | char *buf; |
@@ -262,8 +262,8 @@ il_dbgfs_sram_read(struct file *file, char __user * user_buf, size_t count, | |||
262 | } | 262 | } |
263 | 263 | ||
264 | static ssize_t | 264 | static ssize_t |
265 | il_dbgfs_sram_write(struct file *file, const char __user * user_buf, | 265 | il_dbgfs_sram_write(struct file *file, const char __user *user_buf, |
266 | size_t count, loff_t * ppos) | 266 | size_t count, loff_t *ppos) |
267 | { | 267 | { |
268 | struct il_priv *il = file->private_data; | 268 | struct il_priv *il = file->private_data; |
269 | char buf[64]; | 269 | char buf[64]; |
@@ -287,8 +287,8 @@ il_dbgfs_sram_write(struct file *file, const char __user * user_buf, | |||
287 | } | 287 | } |
288 | 288 | ||
289 | static ssize_t | 289 | static ssize_t |
290 | il_dbgfs_stations_read(struct file *file, char __user * user_buf, size_t count, | 290 | il_dbgfs_stations_read(struct file *file, char __user *user_buf, size_t count, |
291 | loff_t * ppos) | 291 | loff_t *ppos) |
292 | { | 292 | { |
293 | struct il_priv *il = file->private_data; | 293 | struct il_priv *il = file->private_data; |
294 | struct il_station_entry *station; | 294 | struct il_station_entry *station; |
@@ -351,8 +351,8 @@ il_dbgfs_stations_read(struct file *file, char __user * user_buf, size_t count, | |||
351 | } | 351 | } |
352 | 352 | ||
353 | static ssize_t | 353 | static ssize_t |
354 | il_dbgfs_nvm_read(struct file *file, char __user * user_buf, size_t count, | 354 | il_dbgfs_nvm_read(struct file *file, char __user *user_buf, size_t count, |
355 | loff_t * ppos) | 355 | loff_t *ppos) |
356 | { | 356 | { |
357 | ssize_t ret; | 357 | ssize_t ret; |
358 | struct il_priv *il = file->private_data; | 358 | struct il_priv *il = file->private_data; |
@@ -399,8 +399,8 @@ il_dbgfs_nvm_read(struct file *file, char __user * user_buf, size_t count, | |||
399 | } | 399 | } |
400 | 400 | ||
401 | static ssize_t | 401 | static ssize_t |
402 | il_dbgfs_channels_read(struct file *file, char __user * user_buf, size_t count, | 402 | il_dbgfs_channels_read(struct file *file, char __user *user_buf, size_t count, |
403 | loff_t * ppos) | 403 | loff_t *ppos) |
404 | { | 404 | { |
405 | struct il_priv *il = file->private_data; | 405 | struct il_priv *il = file->private_data; |
406 | struct ieee80211_channel *channels = NULL; | 406 | struct ieee80211_channel *channels = NULL; |
@@ -478,8 +478,8 @@ il_dbgfs_channels_read(struct file *file, char __user * user_buf, size_t count, | |||
478 | } | 478 | } |
479 | 479 | ||
480 | static ssize_t | 480 | static ssize_t |
481 | il_dbgfs_status_read(struct file *file, char __user * user_buf, size_t count, | 481 | il_dbgfs_status_read(struct file *file, char __user *user_buf, size_t count, |
482 | loff_t * ppos) | 482 | loff_t *ppos) |
483 | { | 483 | { |
484 | 484 | ||
485 | struct il_priv *il = file->private_data; | 485 | struct il_priv *il = file->private_data; |
@@ -539,8 +539,8 @@ il_dbgfs_status_read(struct file *file, char __user * user_buf, size_t count, | |||
539 | } | 539 | } |
540 | 540 | ||
541 | static ssize_t | 541 | static ssize_t |
542 | il_dbgfs_interrupt_read(struct file *file, char __user * user_buf, size_t count, | 542 | il_dbgfs_interrupt_read(struct file *file, char __user *user_buf, size_t count, |
543 | loff_t * ppos) | 543 | loff_t *ppos) |
544 | { | 544 | { |
545 | 545 | ||
546 | struct il_priv *il = file->private_data; | 546 | struct il_priv *il = file->private_data; |
@@ -618,8 +618,8 @@ il_dbgfs_interrupt_read(struct file *file, char __user * user_buf, size_t count, | |||
618 | } | 618 | } |
619 | 619 | ||
620 | static ssize_t | 620 | static ssize_t |
621 | il_dbgfs_interrupt_write(struct file *file, const char __user * user_buf, | 621 | il_dbgfs_interrupt_write(struct file *file, const char __user *user_buf, |
622 | size_t count, loff_t * ppos) | 622 | size_t count, loff_t *ppos) |
623 | { | 623 | { |
624 | struct il_priv *il = file->private_data; | 624 | struct il_priv *il = file->private_data; |
625 | char buf[8]; | 625 | char buf[8]; |
@@ -639,8 +639,8 @@ il_dbgfs_interrupt_write(struct file *file, const char __user * user_buf, | |||
639 | } | 639 | } |
640 | 640 | ||
641 | static ssize_t | 641 | static ssize_t |
642 | il_dbgfs_qos_read(struct file *file, char __user * user_buf, size_t count, | 642 | il_dbgfs_qos_read(struct file *file, char __user *user_buf, size_t count, |
643 | loff_t * ppos) | 643 | loff_t *ppos) |
644 | { | 644 | { |
645 | struct il_priv *il = file->private_data; | 645 | struct il_priv *il = file->private_data; |
646 | struct il_rxon_context *ctx = &il->ctx; | 646 | struct il_rxon_context *ctx = &il->ctx; |
@@ -666,8 +666,8 @@ il_dbgfs_qos_read(struct file *file, char __user * user_buf, size_t count, | |||
666 | } | 666 | } |
667 | 667 | ||
668 | static ssize_t | 668 | static ssize_t |
669 | il_dbgfs_disable_ht40_write(struct file *file, const char __user * user_buf, | 669 | il_dbgfs_disable_ht40_write(struct file *file, const char __user *user_buf, |
670 | size_t count, loff_t * ppos) | 670 | size_t count, loff_t *ppos) |
671 | { | 671 | { |
672 | struct il_priv *il = file->private_data; | 672 | struct il_priv *il = file->private_data; |
673 | char buf[8]; | 673 | char buf[8]; |
@@ -692,8 +692,8 @@ il_dbgfs_disable_ht40_write(struct file *file, const char __user * user_buf, | |||
692 | } | 692 | } |
693 | 693 | ||
694 | static ssize_t | 694 | static ssize_t |
695 | il_dbgfs_disable_ht40_read(struct file *file, char __user * user_buf, | 695 | il_dbgfs_disable_ht40_read(struct file *file, char __user *user_buf, |
696 | size_t count, loff_t * ppos) | 696 | size_t count, loff_t *ppos) |
697 | { | 697 | { |
698 | struct il_priv *il = file->private_data; | 698 | struct il_priv *il = file->private_data; |
699 | char buf[100]; | 699 | char buf[100]; |
@@ -716,8 +716,8 @@ DEBUGFS_READ_FILE_OPS(qos); | |||
716 | DEBUGFS_READ_WRITE_FILE_OPS(disable_ht40); | 716 | DEBUGFS_READ_WRITE_FILE_OPS(disable_ht40); |
717 | 717 | ||
718 | static ssize_t | 718 | static ssize_t |
719 | il_dbgfs_traffic_log_read(struct file *file, char __user * user_buf, | 719 | il_dbgfs_traffic_log_read(struct file *file, char __user *user_buf, |
720 | size_t count, loff_t * ppos) | 720 | size_t count, loff_t *ppos) |
721 | { | 721 | { |
722 | struct il_priv *il = file->private_data; | 722 | struct il_priv *il = file->private_data; |
723 | int pos = 0, ofs = 0; | 723 | int pos = 0, ofs = 0; |
@@ -801,8 +801,8 @@ il_dbgfs_traffic_log_read(struct file *file, char __user * user_buf, | |||
801 | } | 801 | } |
802 | 802 | ||
803 | static ssize_t | 803 | static ssize_t |
804 | il_dbgfs_traffic_log_write(struct file *file, const char __user * user_buf, | 804 | il_dbgfs_traffic_log_write(struct file *file, const char __user *user_buf, |
805 | size_t count, loff_t * ppos) | 805 | size_t count, loff_t *ppos) |
806 | { | 806 | { |
807 | struct il_priv *il = file->private_data; | 807 | struct il_priv *il = file->private_data; |
808 | char buf[8]; | 808 | char buf[8]; |
@@ -822,8 +822,8 @@ il_dbgfs_traffic_log_write(struct file *file, const char __user * user_buf, | |||
822 | } | 822 | } |
823 | 823 | ||
824 | static ssize_t | 824 | static ssize_t |
825 | il_dbgfs_tx_queue_read(struct file *file, char __user * user_buf, size_t count, | 825 | il_dbgfs_tx_queue_read(struct file *file, char __user *user_buf, size_t count, |
826 | loff_t * ppos) | 826 | loff_t *ppos) |
827 | { | 827 | { |
828 | 828 | ||
829 | struct il_priv *il = file->private_data; | 829 | struct il_priv *il = file->private_data; |
@@ -851,9 +851,8 @@ il_dbgfs_tx_queue_read(struct file *file, char __user * user_buf, size_t count, | |||
851 | scnprintf(buf + pos, bufsz - pos, | 851 | scnprintf(buf + pos, bufsz - pos, |
852 | "hwq %.2d: read=%u write=%u stop=%d" | 852 | "hwq %.2d: read=%u write=%u stop=%d" |
853 | " swq_id=%#.2x (ac %d/hwq %d)\n", cnt, | 853 | " swq_id=%#.2x (ac %d/hwq %d)\n", cnt, |
854 | q->read_ptr, q->write_ptr, !!test_bit(cnt, | 854 | q->read_ptr, q->write_ptr, |
855 | il-> | 855 | !!test_bit(cnt, il->queue_stopped), |
856 | queue_stopped), | ||
857 | txq->swq_id, txq->swq_id & 3, | 856 | txq->swq_id, txq->swq_id & 3, |
858 | (txq->swq_id >> 2) & 0x1f); | 857 | (txq->swq_id >> 2) & 0x1f); |
859 | if (cnt >= 4) | 858 | if (cnt >= 4) |
@@ -870,8 +869,8 @@ il_dbgfs_tx_queue_read(struct file *file, char __user * user_buf, size_t count, | |||
870 | } | 869 | } |
871 | 870 | ||
872 | static ssize_t | 871 | static ssize_t |
873 | il_dbgfs_rx_queue_read(struct file *file, char __user * user_buf, size_t count, | 872 | il_dbgfs_rx_queue_read(struct file *file, char __user *user_buf, size_t count, |
874 | loff_t * ppos) | 873 | loff_t *ppos) |
875 | { | 874 | { |
876 | 875 | ||
877 | struct il_priv *il = file->private_data; | 876 | struct il_priv *il = file->private_data; |
@@ -899,8 +898,8 @@ il_dbgfs_rx_queue_read(struct file *file, char __user * user_buf, size_t count, | |||
899 | } | 898 | } |
900 | 899 | ||
901 | static ssize_t | 900 | static ssize_t |
902 | il_dbgfs_ucode_rx_stats_read(struct file *file, char __user * user_buf, | 901 | il_dbgfs_ucode_rx_stats_read(struct file *file, char __user *user_buf, |
903 | size_t count, loff_t * ppos) | 902 | size_t count, loff_t *ppos) |
904 | { | 903 | { |
905 | struct il_priv *il = file->private_data; | 904 | struct il_priv *il = file->private_data; |
906 | return il->cfg->ops->lib->debugfs_ops.rx_stats_read(file, user_buf, | 905 | return il->cfg->ops->lib->debugfs_ops.rx_stats_read(file, user_buf, |
@@ -908,8 +907,8 @@ il_dbgfs_ucode_rx_stats_read(struct file *file, char __user * user_buf, | |||
908 | } | 907 | } |
909 | 908 | ||
910 | static ssize_t | 909 | static ssize_t |
911 | il_dbgfs_ucode_tx_stats_read(struct file *file, char __user * user_buf, | 910 | il_dbgfs_ucode_tx_stats_read(struct file *file, char __user *user_buf, |
912 | size_t count, loff_t * ppos) | 911 | size_t count, loff_t *ppos) |
913 | { | 912 | { |
914 | struct il_priv *il = file->private_data; | 913 | struct il_priv *il = file->private_data; |
915 | return il->cfg->ops->lib->debugfs_ops.tx_stats_read(file, user_buf, | 914 | return il->cfg->ops->lib->debugfs_ops.tx_stats_read(file, user_buf, |
@@ -917,8 +916,8 @@ il_dbgfs_ucode_tx_stats_read(struct file *file, char __user * user_buf, | |||
917 | } | 916 | } |
918 | 917 | ||
919 | static ssize_t | 918 | static ssize_t |
920 | il_dbgfs_ucode_general_stats_read(struct file *file, char __user * user_buf, | 919 | il_dbgfs_ucode_general_stats_read(struct file *file, char __user *user_buf, |
921 | size_t count, loff_t * ppos) | 920 | size_t count, loff_t *ppos) |
922 | { | 921 | { |
923 | struct il_priv *il = file->private_data; | 922 | struct il_priv *il = file->private_data; |
924 | return il->cfg->ops->lib->debugfs_ops.general_stats_read(file, user_buf, | 923 | return il->cfg->ops->lib->debugfs_ops.general_stats_read(file, user_buf, |
@@ -926,8 +925,8 @@ il_dbgfs_ucode_general_stats_read(struct file *file, char __user * user_buf, | |||
926 | } | 925 | } |
927 | 926 | ||
928 | static ssize_t | 927 | static ssize_t |
929 | il_dbgfs_sensitivity_read(struct file *file, char __user * user_buf, | 928 | il_dbgfs_sensitivity_read(struct file *file, char __user *user_buf, |
930 | size_t count, loff_t * ppos) | 929 | size_t count, loff_t *ppos) |
931 | { | 930 | { |
932 | 931 | ||
933 | struct il_priv *il = file->private_data; | 932 | struct il_priv *il = file->private_data; |
@@ -1025,8 +1024,8 @@ il_dbgfs_sensitivity_read(struct file *file, char __user * user_buf, | |||
1025 | } | 1024 | } |
1026 | 1025 | ||
1027 | static ssize_t | 1026 | static ssize_t |
1028 | il_dbgfs_chain_noise_read(struct file *file, char __user * user_buf, | 1027 | il_dbgfs_chain_noise_read(struct file *file, char __user *user_buf, |
1029 | size_t count, loff_t * ppos) | 1028 | size_t count, loff_t *ppos) |
1030 | { | 1029 | { |
1031 | 1030 | ||
1032 | struct il_priv *il = file->private_data; | 1031 | struct il_priv *il = file->private_data; |
@@ -1096,8 +1095,8 @@ il_dbgfs_chain_noise_read(struct file *file, char __user * user_buf, | |||
1096 | } | 1095 | } |
1097 | 1096 | ||
1098 | static ssize_t | 1097 | static ssize_t |
1099 | il_dbgfs_power_save_status_read(struct file *file, char __user * user_buf, | 1098 | il_dbgfs_power_save_status_read(struct file *file, char __user *user_buf, |
1100 | size_t count, loff_t * ppos) | 1099 | size_t count, loff_t *ppos) |
1101 | { | 1100 | { |
1102 | struct il_priv *il = file->private_data; | 1101 | struct il_priv *il = file->private_data; |
1103 | char buf[60]; | 1102 | char buf[60]; |
@@ -1111,19 +1110,18 @@ il_dbgfs_power_save_status_read(struct file *file, char __user * user_buf, | |||
1111 | pos += scnprintf(buf + pos, bufsz - pos, "Power Save Status: "); | 1110 | pos += scnprintf(buf + pos, bufsz - pos, "Power Save Status: "); |
1112 | pos += | 1111 | pos += |
1113 | scnprintf(buf + pos, bufsz - pos, "%s\n", | 1112 | scnprintf(buf + pos, bufsz - pos, "%s\n", |
1114 | (pwrsave_status == | 1113 | (pwrsave_status == CSR_GP_REG_NO_POWER_SAVE) ? "none" : |
1115 | CSR_GP_REG_NO_POWER_SAVE) ? "none" : (pwrsave_status == | 1114 | (pwrsave_status == CSR_GP_REG_MAC_POWER_SAVE) ? "MAC" : |
1116 | CSR_GP_REG_MAC_POWER_SAVE) | 1115 | (pwrsave_status == CSR_GP_REG_PHY_POWER_SAVE) ? "PHY" : |
1117 | ? "MAC" : (pwrsave_status == | 1116 | "error"); |
1118 | CSR_GP_REG_PHY_POWER_SAVE) ? "PHY" : "error"); | ||
1119 | 1117 | ||
1120 | return simple_read_from_buffer(user_buf, count, ppos, buf, pos); | 1118 | return simple_read_from_buffer(user_buf, count, ppos, buf, pos); |
1121 | } | 1119 | } |
1122 | 1120 | ||
1123 | static ssize_t | 1121 | static ssize_t |
1124 | il_dbgfs_clear_ucode_stats_write(struct file *file, | 1122 | il_dbgfs_clear_ucode_stats_write(struct file *file, |
1125 | const char __user * user_buf, size_t count, | 1123 | const char __user *user_buf, size_t count, |
1126 | loff_t * ppos) | 1124 | loff_t *ppos) |
1127 | { | 1125 | { |
1128 | struct il_priv *il = file->private_data; | 1126 | struct il_priv *il = file->private_data; |
1129 | char buf[8]; | 1127 | char buf[8]; |
@@ -1146,8 +1144,8 @@ il_dbgfs_clear_ucode_stats_write(struct file *file, | |||
1146 | } | 1144 | } |
1147 | 1145 | ||
1148 | static ssize_t | 1146 | static ssize_t |
1149 | il_dbgfs_rxon_flags_read(struct file *file, char __user * user_buf, | 1147 | il_dbgfs_rxon_flags_read(struct file *file, char __user *user_buf, |
1150 | size_t count, loff_t * ppos) | 1148 | size_t count, loff_t *ppos) |
1151 | { | 1149 | { |
1152 | 1150 | ||
1153 | struct il_priv *il = file->private_data; | 1151 | struct il_priv *il = file->private_data; |
@@ -1159,8 +1157,8 @@ il_dbgfs_rxon_flags_read(struct file *file, char __user * user_buf, | |||
1159 | } | 1157 | } |
1160 | 1158 | ||
1161 | static ssize_t | 1159 | static ssize_t |
1162 | il_dbgfs_rxon_filter_flags_read(struct file *file, char __user * user_buf, | 1160 | il_dbgfs_rxon_filter_flags_read(struct file *file, char __user *user_buf, |
1163 | size_t count, loff_t * ppos) | 1161 | size_t count, loff_t *ppos) |
1164 | { | 1162 | { |
1165 | 1163 | ||
1166 | struct il_priv *il = file->private_data; | 1164 | struct il_priv *il = file->private_data; |
@@ -1173,8 +1171,8 @@ il_dbgfs_rxon_filter_flags_read(struct file *file, char __user * user_buf, | |||
1173 | } | 1171 | } |
1174 | 1172 | ||
1175 | static ssize_t | 1173 | static ssize_t |
1176 | il_dbgfs_fh_reg_read(struct file *file, char __user * user_buf, size_t count, | 1174 | il_dbgfs_fh_reg_read(struct file *file, char __user *user_buf, size_t count, |
1177 | loff_t * ppos) | 1175 | loff_t *ppos) |
1178 | { | 1176 | { |
1179 | struct il_priv *il = file->private_data; | 1177 | struct il_priv *il = file->private_data; |
1180 | char *buf; | 1178 | char *buf; |
@@ -1195,8 +1193,8 @@ il_dbgfs_fh_reg_read(struct file *file, char __user * user_buf, size_t count, | |||
1195 | } | 1193 | } |
1196 | 1194 | ||
1197 | static ssize_t | 1195 | static ssize_t |
1198 | il_dbgfs_missed_beacon_read(struct file *file, char __user * user_buf, | 1196 | il_dbgfs_missed_beacon_read(struct file *file, char __user *user_buf, |
1199 | size_t count, loff_t * ppos) | 1197 | size_t count, loff_t *ppos) |
1200 | { | 1198 | { |
1201 | 1199 | ||
1202 | struct il_priv *il = file->private_data; | 1200 | struct il_priv *il = file->private_data; |
@@ -1212,8 +1210,8 @@ il_dbgfs_missed_beacon_read(struct file *file, char __user * user_buf, | |||
1212 | } | 1210 | } |
1213 | 1211 | ||
1214 | static ssize_t | 1212 | static ssize_t |
1215 | il_dbgfs_missed_beacon_write(struct file *file, const char __user * user_buf, | 1213 | il_dbgfs_missed_beacon_write(struct file *file, const char __user *user_buf, |
1216 | size_t count, loff_t * ppos) | 1214 | size_t count, loff_t *ppos) |
1217 | { | 1215 | { |
1218 | struct il_priv *il = file->private_data; | 1216 | struct il_priv *il = file->private_data; |
1219 | char buf[8]; | 1217 | char buf[8]; |
@@ -1237,8 +1235,8 @@ il_dbgfs_missed_beacon_write(struct file *file, const char __user * user_buf, | |||
1237 | } | 1235 | } |
1238 | 1236 | ||
1239 | static ssize_t | 1237 | static ssize_t |
1240 | il_dbgfs_force_reset_read(struct file *file, char __user * user_buf, | 1238 | il_dbgfs_force_reset_read(struct file *file, char __user *user_buf, |
1241 | size_t count, loff_t * ppos) | 1239 | size_t count, loff_t *ppos) |
1242 | { | 1240 | { |
1243 | 1241 | ||
1244 | struct il_priv *il = file->private_data; | 1242 | struct il_priv *il = file->private_data; |
@@ -1268,8 +1266,8 @@ il_dbgfs_force_reset_read(struct file *file, char __user * user_buf, | |||
1268 | } | 1266 | } |
1269 | 1267 | ||
1270 | static ssize_t | 1268 | static ssize_t |
1271 | il_dbgfs_force_reset_write(struct file *file, const char __user * user_buf, | 1269 | il_dbgfs_force_reset_write(struct file *file, const char __user *user_buf, |
1272 | size_t count, loff_t * ppos) | 1270 | size_t count, loff_t *ppos) |
1273 | { | 1271 | { |
1274 | 1272 | ||
1275 | int ret; | 1273 | int ret; |
@@ -1281,8 +1279,8 @@ il_dbgfs_force_reset_write(struct file *file, const char __user * user_buf, | |||
1281 | } | 1279 | } |
1282 | 1280 | ||
1283 | static ssize_t | 1281 | static ssize_t |
1284 | il_dbgfs_wd_timeout_write(struct file *file, const char __user * user_buf, | 1282 | il_dbgfs_wd_timeout_write(struct file *file, const char __user *user_buf, |
1285 | size_t count, loff_t * ppos) | 1283 | size_t count, loff_t *ppos) |
1286 | { | 1284 | { |
1287 | 1285 | ||
1288 | struct il_priv *il = file->private_data; | 1286 | struct il_priv *il = file->private_data; |
@@ -1394,7 +1392,6 @@ err: | |||
1394 | il_dbgfs_unregister(il); | 1392 | il_dbgfs_unregister(il); |
1395 | return -ENOMEM; | 1393 | return -ENOMEM; |
1396 | } | 1394 | } |
1397 | |||
1398 | EXPORT_SYMBOL(il_dbgfs_register); | 1395 | EXPORT_SYMBOL(il_dbgfs_register); |
1399 | 1396 | ||
1400 | /** | 1397 | /** |
@@ -1410,5 +1407,4 @@ il_dbgfs_unregister(struct il_priv *il) | |||
1410 | debugfs_remove_recursive(il->debugfs_dir); | 1407 | debugfs_remove_recursive(il->debugfs_dir); |
1411 | il->debugfs_dir = NULL; | 1408 | il->debugfs_dir = NULL; |
1412 | } | 1409 | } |
1413 | |||
1414 | EXPORT_SYMBOL(il_dbgfs_unregister); | 1410 | EXPORT_SYMBOL(il_dbgfs_unregister); |