]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
cw1200: convert to use simple_open()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Thu, 30 May 2013 11:42:35 +0000 (19:42 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 30 May 2013 18:45:24 +0000 (14:45 -0400)
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>
drivers/net/wireless/cw1200/debug.c

index b815181802e0105da38f997aa11768d80f0945a0..eb40c9c61a512987711ca3d7fd25a2948c677439 100644 (file)
@@ -357,12 +357,6 @@ static const struct file_operations fops_counters = {
        .owner = THIS_MODULE,
 };
 
-static int cw1200_generic_open(struct inode *inode, struct file *file)
-{
-       file->private_data = inode->i_private;
-       return 0;
-}
-
 #ifdef CONFIG_CW1200_ETF
 static int cw1200_etf_out_show(struct seq_file *seq, void *v)
 {
@@ -511,7 +505,7 @@ static ssize_t cw1200_wsm_dumps(struct file *file,
 }
 
 static const struct file_operations fops_wsm_dumps = {
-       .open = cw1200_generic_open,
+       .open = simple_open,
        .write = cw1200_wsm_dumps,
        .llseek = default_llseek,
 };