diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath6kl/debug.c')
| -rw-r--r-- | drivers/net/wireless/ath/ath6kl/debug.c | 42 |
1 files changed, 18 insertions, 24 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/debug.c b/drivers/net/wireless/ath/ath6kl/debug.c index 552adb3f80d0..d01403a263ff 100644 --- a/drivers/net/wireless/ath/ath6kl/debug.c +++ b/drivers/net/wireless/ath/ath6kl/debug.c | |||
| @@ -217,12 +217,6 @@ void dump_cred_dist_stats(struct htc_target *target) | |||
| 217 | target->credit_info->cur_free_credits); | 217 | target->credit_info->cur_free_credits); |
| 218 | } | 218 | } |
| 219 | 219 | ||
| 220 | static int ath6kl_debugfs_open(struct inode *inode, struct file *file) | ||
| 221 | { | ||
| 222 | file->private_data = inode->i_private; | ||
| 223 | return 0; | ||
| 224 | } | ||
| 225 | |||
| 226 | void ath6kl_debug_war(struct ath6kl *ar, enum ath6kl_war war) | 220 | void ath6kl_debug_war(struct ath6kl *ar, enum ath6kl_war war) |
| 227 | { | 221 | { |
| 228 | switch (war) { | 222 | switch (war) { |
| @@ -263,7 +257,7 @@ static ssize_t read_file_war_stats(struct file *file, char __user *user_buf, | |||
| 263 | 257 | ||
| 264 | static const struct file_operations fops_war_stats = { | 258 | static const struct file_operations fops_war_stats = { |
| 265 | .read = read_file_war_stats, | 259 | .read = read_file_war_stats, |
| 266 | .open = ath6kl_debugfs_open, | 260 | .open = simple_open, |
| 267 | .owner = THIS_MODULE, | 261 | .owner = THIS_MODULE, |
| 268 | .llseek = default_llseek, | 262 | .llseek = default_llseek, |
| 269 | }; | 263 | }; |
| @@ -488,7 +482,7 @@ static ssize_t ath6kl_fwlog_mask_write(struct file *file, | |||
| 488 | } | 482 | } |
| 489 | 483 | ||
| 490 | static const struct file_operations fops_fwlog_mask = { | 484 | static const struct file_operations fops_fwlog_mask = { |
| 491 | .open = ath6kl_debugfs_open, | 485 | .open = simple_open, |
| 492 | .read = ath6kl_fwlog_mask_read, | 486 | .read = ath6kl_fwlog_mask_read, |
| 493 | .write = ath6kl_fwlog_mask_write, | 487 | .write = ath6kl_fwlog_mask_write, |
| 494 | .owner = THIS_MODULE, | 488 | .owner = THIS_MODULE, |
| @@ -634,7 +628,7 @@ static ssize_t read_file_tgt_stats(struct file *file, char __user *user_buf, | |||
| 634 | 628 | ||
| 635 | static const struct file_operations fops_tgt_stats = { | 629 | static const struct file_operations fops_tgt_stats = { |
| 636 | .read = read_file_tgt_stats, | 630 | .read = read_file_tgt_stats, |
| 637 | .open = ath6kl_debugfs_open, | 631 | .open = simple_open, |
| 638 | .owner = THIS_MODULE, | 632 | .owner = THIS_MODULE, |
| 639 | .llseek = default_llseek, | 633 | .llseek = default_llseek, |
| 640 | }; | 634 | }; |
| @@ -699,7 +693,7 @@ static ssize_t read_file_credit_dist_stats(struct file *file, | |||
| 699 | 693 | ||
| 700 | static const struct file_operations fops_credit_dist_stats = { | 694 | static const struct file_operations fops_credit_dist_stats = { |
| 701 | .read = read_file_credit_dist_stats, | 695 | .read = read_file_credit_dist_stats, |
| 702 | .open = ath6kl_debugfs_open, | 696 | .open = simple_open, |
| 703 | .owner = THIS_MODULE, | 697 | .owner = THIS_MODULE, |
| 704 | .llseek = default_llseek, | 698 | .llseek = default_llseek, |
| 705 | }; | 699 | }; |
| @@ -802,7 +796,7 @@ static ssize_t ath6kl_endpoint_stats_write(struct file *file, | |||
| 802 | } | 796 | } |
| 803 | 797 | ||
| 804 | static const struct file_operations fops_endpoint_stats = { | 798 | static const struct file_operations fops_endpoint_stats = { |
| 805 | .open = ath6kl_debugfs_open, | 799 | .open = simple_open, |
| 806 | .read = ath6kl_endpoint_stats_read, | 800 | .read = ath6kl_endpoint_stats_read, |
| 807 | .write = ath6kl_endpoint_stats_write, | 801 | .write = ath6kl_endpoint_stats_write, |
| 808 | .owner = THIS_MODULE, | 802 | .owner = THIS_MODULE, |
| @@ -875,7 +869,7 @@ static ssize_t ath6kl_regread_write(struct file *file, | |||
| 875 | static const struct file_operations fops_diag_reg_read = { | 869 | static const struct file_operations fops_diag_reg_read = { |
| 876 | .read = ath6kl_regread_read, | 870 | .read = ath6kl_regread_read, |
| 877 | .write = ath6kl_regread_write, | 871 | .write = ath6kl_regread_write, |
| 878 | .open = ath6kl_debugfs_open, | 872 | .open = simple_open, |
| 879 | .owner = THIS_MODULE, | 873 | .owner = THIS_MODULE, |
| 880 | .llseek = default_llseek, | 874 | .llseek = default_llseek, |
| 881 | }; | 875 | }; |
| @@ -999,7 +993,7 @@ static ssize_t ath6kl_lrssi_roam_read(struct file *file, | |||
| 999 | static const struct file_operations fops_lrssi_roam_threshold = { | 993 | static const struct file_operations fops_lrssi_roam_threshold = { |
| 1000 | .read = ath6kl_lrssi_roam_read, | 994 | .read = ath6kl_lrssi_roam_read, |
| 1001 | .write = ath6kl_lrssi_roam_write, | 995 | .write = ath6kl_lrssi_roam_write, |
| 1002 | .open = ath6kl_debugfs_open, | 996 | .open = simple_open, |
| 1003 | .owner = THIS_MODULE, | 997 | .owner = THIS_MODULE, |
| 1004 | .llseek = default_llseek, | 998 | .llseek = default_llseek, |
| 1005 | }; | 999 | }; |
| @@ -1061,7 +1055,7 @@ static ssize_t ath6kl_regwrite_write(struct file *file, | |||
| 1061 | static const struct file_operations fops_diag_reg_write = { | 1055 | static const struct file_operations fops_diag_reg_write = { |
| 1062 | .read = ath6kl_regwrite_read, | 1056 | .read = ath6kl_regwrite_read, |
| 1063 | .write = ath6kl_regwrite_write, | 1057 | .write = ath6kl_regwrite_write, |
| 1064 | .open = ath6kl_debugfs_open, | 1058 | .open = simple_open, |
| 1065 | .owner = THIS_MODULE, | 1059 | .owner = THIS_MODULE, |
| 1066 | .llseek = default_llseek, | 1060 | .llseek = default_llseek, |
| 1067 | }; | 1061 | }; |
| @@ -1166,7 +1160,7 @@ static ssize_t ath6kl_roam_table_read(struct file *file, char __user *user_buf, | |||
| 1166 | 1160 | ||
| 1167 | static const struct file_operations fops_roam_table = { | 1161 | static const struct file_operations fops_roam_table = { |
| 1168 | .read = ath6kl_roam_table_read, | 1162 | .read = ath6kl_roam_table_read, |
| 1169 | .open = ath6kl_debugfs_open, | 1163 | .open = simple_open, |
| 1170 | .owner = THIS_MODULE, | 1164 | .owner = THIS_MODULE, |
| 1171 | .llseek = default_llseek, | 1165 | .llseek = default_llseek, |
| 1172 | }; | 1166 | }; |
| @@ -1204,7 +1198,7 @@ static ssize_t ath6kl_force_roam_write(struct file *file, | |||
| 1204 | 1198 | ||
| 1205 | static const struct file_operations fops_force_roam = { | 1199 | static const struct file_operations fops_force_roam = { |
| 1206 | .write = ath6kl_force_roam_write, | 1200 | .write = ath6kl_force_roam_write, |
| 1207 | .open = ath6kl_debugfs_open, | 1201 | .open = simple_open, |
| 1208 | .owner = THIS_MODULE, | 1202 | .owner = THIS_MODULE, |
| 1209 | .llseek = default_llseek, | 1203 | .llseek = default_llseek, |
| 1210 | }; | 1204 | }; |
| @@ -1244,7 +1238,7 @@ static ssize_t ath6kl_roam_mode_write(struct file *file, | |||
| 1244 | 1238 | ||
| 1245 | static const struct file_operations fops_roam_mode = { | 1239 | static const struct file_operations fops_roam_mode = { |
| 1246 | .write = ath6kl_roam_mode_write, | 1240 | .write = ath6kl_roam_mode_write, |
| 1247 | .open = ath6kl_debugfs_open, | 1241 | .open = simple_open, |
| 1248 | .owner = THIS_MODULE, | 1242 | .owner = THIS_MODULE, |
| 1249 | .llseek = default_llseek, | 1243 | .llseek = default_llseek, |
| 1250 | }; | 1244 | }; |
| @@ -1286,7 +1280,7 @@ static ssize_t ath6kl_keepalive_write(struct file *file, | |||
| 1286 | } | 1280 | } |
| 1287 | 1281 | ||
| 1288 | static const struct file_operations fops_keepalive = { | 1282 | static const struct file_operations fops_keepalive = { |
| 1289 | .open = ath6kl_debugfs_open, | 1283 | .open = simple_open, |
| 1290 | .read = ath6kl_keepalive_read, | 1284 | .read = ath6kl_keepalive_read, |
| 1291 | .write = ath6kl_keepalive_write, | 1285 | .write = ath6kl_keepalive_write, |
| 1292 | .owner = THIS_MODULE, | 1286 | .owner = THIS_MODULE, |
| @@ -1331,7 +1325,7 @@ static ssize_t ath6kl_disconnect_timeout_write(struct file *file, | |||
| 1331 | } | 1325 | } |
| 1332 | 1326 | ||
| 1333 | static const struct file_operations fops_disconnect_timeout = { | 1327 | static const struct file_operations fops_disconnect_timeout = { |
| 1334 | .open = ath6kl_debugfs_open, | 1328 | .open = simple_open, |
| 1335 | .read = ath6kl_disconnect_timeout_read, | 1329 | .read = ath6kl_disconnect_timeout_read, |
| 1336 | .write = ath6kl_disconnect_timeout_write, | 1330 | .write = ath6kl_disconnect_timeout_write, |
| 1337 | .owner = THIS_MODULE, | 1331 | .owner = THIS_MODULE, |
| @@ -1512,7 +1506,7 @@ static ssize_t ath6kl_create_qos_write(struct file *file, | |||
| 1512 | 1506 | ||
| 1513 | static const struct file_operations fops_create_qos = { | 1507 | static const struct file_operations fops_create_qos = { |
| 1514 | .write = ath6kl_create_qos_write, | 1508 | .write = ath6kl_create_qos_write, |
| 1515 | .open = ath6kl_debugfs_open, | 1509 | .open = simple_open, |
| 1516 | .owner = THIS_MODULE, | 1510 | .owner = THIS_MODULE, |
| 1517 | .llseek = default_llseek, | 1511 | .llseek = default_llseek, |
| 1518 | }; | 1512 | }; |
| @@ -1560,7 +1554,7 @@ static ssize_t ath6kl_delete_qos_write(struct file *file, | |||
| 1560 | 1554 | ||
| 1561 | static const struct file_operations fops_delete_qos = { | 1555 | static const struct file_operations fops_delete_qos = { |
| 1562 | .write = ath6kl_delete_qos_write, | 1556 | .write = ath6kl_delete_qos_write, |
| 1563 | .open = ath6kl_debugfs_open, | 1557 | .open = simple_open, |
| 1564 | .owner = THIS_MODULE, | 1558 | .owner = THIS_MODULE, |
| 1565 | .llseek = default_llseek, | 1559 | .llseek = default_llseek, |
| 1566 | }; | 1560 | }; |
| @@ -1593,7 +1587,7 @@ static ssize_t ath6kl_bgscan_int_write(struct file *file, | |||
| 1593 | 1587 | ||
| 1594 | static const struct file_operations fops_bgscan_int = { | 1588 | static const struct file_operations fops_bgscan_int = { |
| 1595 | .write = ath6kl_bgscan_int_write, | 1589 | .write = ath6kl_bgscan_int_write, |
| 1596 | .open = ath6kl_debugfs_open, | 1590 | .open = simple_open, |
| 1597 | .owner = THIS_MODULE, | 1591 | .owner = THIS_MODULE, |
| 1598 | .llseek = default_llseek, | 1592 | .llseek = default_llseek, |
| 1599 | }; | 1593 | }; |
| @@ -1651,7 +1645,7 @@ static ssize_t ath6kl_listen_int_read(struct file *file, | |||
| 1651 | static const struct file_operations fops_listen_int = { | 1645 | static const struct file_operations fops_listen_int = { |
| 1652 | .read = ath6kl_listen_int_read, | 1646 | .read = ath6kl_listen_int_read, |
| 1653 | .write = ath6kl_listen_int_write, | 1647 | .write = ath6kl_listen_int_write, |
| 1654 | .open = ath6kl_debugfs_open, | 1648 | .open = simple_open, |
| 1655 | .owner = THIS_MODULE, | 1649 | .owner = THIS_MODULE, |
| 1656 | .llseek = default_llseek, | 1650 | .llseek = default_llseek, |
| 1657 | }; | 1651 | }; |
| @@ -1711,7 +1705,7 @@ static ssize_t ath6kl_power_params_write(struct file *file, | |||
| 1711 | 1705 | ||
| 1712 | static const struct file_operations fops_power_params = { | 1706 | static const struct file_operations fops_power_params = { |
| 1713 | .write = ath6kl_power_params_write, | 1707 | .write = ath6kl_power_params_write, |
| 1714 | .open = ath6kl_debugfs_open, | 1708 | .open = simple_open, |
| 1715 | .owner = THIS_MODULE, | 1709 | .owner = THIS_MODULE, |
| 1716 | .llseek = default_llseek, | 1710 | .llseek = default_llseek, |
| 1717 | }; | 1711 | }; |
