diff options
author | John W. Linville <linville@tuxdriver.com> | 2012-04-12 13:49:28 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-04-12 13:49:28 -0400 |
commit | 8065248069097dddf9945acfb2081025e9618c16 (patch) | |
tree | eddf3fb0372ba0f65c01382d386942ea8d18932d /drivers/net/wireless/ath/ath5k/debug.c | |
parent | e66a8ddff72e85605f2212a0ebc666c7e9116641 (diff) | |
parent | b4838d12e1f3cb48c2489a0b08733b5dbf848297 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/debug.c')
-rw-r--r-- | drivers/net/wireless/ath/ath5k/debug.c | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/drivers/net/wireless/ath/ath5k/debug.c b/drivers/net/wireless/ath/ath5k/debug.c index 9be885707e20..9d00dab666a8 100644 --- a/drivers/net/wireless/ath/ath5k/debug.c +++ b/drivers/net/wireless/ath/ath5k/debug.c | |||
@@ -74,13 +74,6 @@ static unsigned int ath5k_debug; | |||
74 | module_param_named(debug, ath5k_debug, uint, 0); | 74 | module_param_named(debug, ath5k_debug, uint, 0); |
75 | 75 | ||
76 | 76 | ||
77 | static int ath5k_debugfs_open(struct inode *inode, struct file *file) | ||
78 | { | ||
79 | file->private_data = inode->i_private; | ||
80 | return 0; | ||
81 | } | ||
82 | |||
83 | |||
84 | /* debugfs: registers */ | 77 | /* debugfs: registers */ |
85 | 78 | ||
86 | struct reg { | 79 | struct reg { |
@@ -268,7 +261,7 @@ static ssize_t write_file_beacon(struct file *file, | |||
268 | static const struct file_operations fops_beacon = { | 261 | static const struct file_operations fops_beacon = { |
269 | .read = read_file_beacon, | 262 | .read = read_file_beacon, |
270 | .write = write_file_beacon, | 263 | .write = write_file_beacon, |
271 | .open = ath5k_debugfs_open, | 264 | .open = simple_open, |
272 | .owner = THIS_MODULE, | 265 | .owner = THIS_MODULE, |
273 | .llseek = default_llseek, | 266 | .llseek = default_llseek, |
274 | }; | 267 | }; |
@@ -288,7 +281,7 @@ static ssize_t write_file_reset(struct file *file, | |||
288 | 281 | ||
289 | static const struct file_operations fops_reset = { | 282 | static const struct file_operations fops_reset = { |
290 | .write = write_file_reset, | 283 | .write = write_file_reset, |
291 | .open = ath5k_debugfs_open, | 284 | .open = simple_open, |
292 | .owner = THIS_MODULE, | 285 | .owner = THIS_MODULE, |
293 | .llseek = noop_llseek, | 286 | .llseek = noop_llseek, |
294 | }; | 287 | }; |
@@ -368,7 +361,7 @@ static ssize_t write_file_debug(struct file *file, | |||
368 | static const struct file_operations fops_debug = { | 361 | static const struct file_operations fops_debug = { |
369 | .read = read_file_debug, | 362 | .read = read_file_debug, |
370 | .write = write_file_debug, | 363 | .write = write_file_debug, |
371 | .open = ath5k_debugfs_open, | 364 | .open = simple_open, |
372 | .owner = THIS_MODULE, | 365 | .owner = THIS_MODULE, |
373 | .llseek = default_llseek, | 366 | .llseek = default_llseek, |
374 | }; | 367 | }; |
@@ -480,7 +473,7 @@ static ssize_t write_file_antenna(struct file *file, | |||
480 | static const struct file_operations fops_antenna = { | 473 | static const struct file_operations fops_antenna = { |
481 | .read = read_file_antenna, | 474 | .read = read_file_antenna, |
482 | .write = write_file_antenna, | 475 | .write = write_file_antenna, |
483 | .open = ath5k_debugfs_open, | 476 | .open = simple_open, |
484 | .owner = THIS_MODULE, | 477 | .owner = THIS_MODULE, |
485 | .llseek = default_llseek, | 478 | .llseek = default_llseek, |
486 | }; | 479 | }; |
@@ -535,7 +528,7 @@ static ssize_t read_file_misc(struct file *file, char __user *user_buf, | |||
535 | 528 | ||
536 | static const struct file_operations fops_misc = { | 529 | static const struct file_operations fops_misc = { |
537 | .read = read_file_misc, | 530 | .read = read_file_misc, |
538 | .open = ath5k_debugfs_open, | 531 | .open = simple_open, |
539 | .owner = THIS_MODULE, | 532 | .owner = THIS_MODULE, |
540 | }; | 533 | }; |
541 | 534 | ||
@@ -650,7 +643,7 @@ static ssize_t write_file_frameerrors(struct file *file, | |||
650 | static const struct file_operations fops_frameerrors = { | 643 | static const struct file_operations fops_frameerrors = { |
651 | .read = read_file_frameerrors, | 644 | .read = read_file_frameerrors, |
652 | .write = write_file_frameerrors, | 645 | .write = write_file_frameerrors, |
653 | .open = ath5k_debugfs_open, | 646 | .open = simple_open, |
654 | .owner = THIS_MODULE, | 647 | .owner = THIS_MODULE, |
655 | .llseek = default_llseek, | 648 | .llseek = default_llseek, |
656 | }; | 649 | }; |
@@ -813,7 +806,7 @@ static ssize_t write_file_ani(struct file *file, | |||
813 | static const struct file_operations fops_ani = { | 806 | static const struct file_operations fops_ani = { |
814 | .read = read_file_ani, | 807 | .read = read_file_ani, |
815 | .write = write_file_ani, | 808 | .write = write_file_ani, |
816 | .open = ath5k_debugfs_open, | 809 | .open = simple_open, |
817 | .owner = THIS_MODULE, | 810 | .owner = THIS_MODULE, |
818 | .llseek = default_llseek, | 811 | .llseek = default_llseek, |
819 | }; | 812 | }; |
@@ -884,7 +877,7 @@ static ssize_t write_file_queue(struct file *file, | |||
884 | static const struct file_operations fops_queue = { | 877 | static const struct file_operations fops_queue = { |
885 | .read = read_file_queue, | 878 | .read = read_file_queue, |
886 | .write = write_file_queue, | 879 | .write = write_file_queue, |
887 | .open = ath5k_debugfs_open, | 880 | .open = simple_open, |
888 | .owner = THIS_MODULE, | 881 | .owner = THIS_MODULE, |
889 | .llseek = default_llseek, | 882 | .llseek = default_llseek, |
890 | }; | 883 | }; |