diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-05-30 07:42:35 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-05-30 14:45:24 -0400 |
commit | c0dc79d607c39f5f6c6fd6cc8119b81639a6d6f3 (patch) | |
tree | a978d5fabf47a9a95c13933a847039ef834bb51f /drivers/net/wireless/cw1200 | |
parent | 4696d477d8dd23ad990d716a90d08cb149c2e861 (diff) |
cw1200: convert to use simple_open()
This removes an open coded simple_open() function and
replaces file operations references to the function
with simple_open() instead.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/cw1200')
-rw-r--r-- | drivers/net/wireless/cw1200/debug.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/net/wireless/cw1200/debug.c b/drivers/net/wireless/cw1200/debug.c index b815181802e0..eb40c9c61a51 100644 --- a/drivers/net/wireless/cw1200/debug.c +++ b/drivers/net/wireless/cw1200/debug.c | |||
@@ -357,12 +357,6 @@ static const struct file_operations fops_counters = { | |||
357 | .owner = THIS_MODULE, | 357 | .owner = THIS_MODULE, |
358 | }; | 358 | }; |
359 | 359 | ||
360 | static int cw1200_generic_open(struct inode *inode, struct file *file) | ||
361 | { | ||
362 | file->private_data = inode->i_private; | ||
363 | return 0; | ||
364 | } | ||
365 | |||
366 | #ifdef CONFIG_CW1200_ETF | 360 | #ifdef CONFIG_CW1200_ETF |
367 | static int cw1200_etf_out_show(struct seq_file *seq, void *v) | 361 | static int cw1200_etf_out_show(struct seq_file *seq, void *v) |
368 | { | 362 | { |
@@ -511,7 +505,7 @@ static ssize_t cw1200_wsm_dumps(struct file *file, | |||
511 | } | 505 | } |
512 | 506 | ||
513 | static const struct file_operations fops_wsm_dumps = { | 507 | static const struct file_operations fops_wsm_dumps = { |
514 | .open = cw1200_generic_open, | 508 | .open = simple_open, |
515 | .write = cw1200_wsm_dumps, | 509 | .write = cw1200_wsm_dumps, |
516 | .llseek = default_llseek, | 510 | .llseek = default_llseek, |
517 | }; | 511 | }; |