summaryrefslogtreecommitdiff
path: root/drivers/misc/mei/debugfs.c
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-04-09 10:30:19 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-04-11 23:39:01 +0400
commita42f82f57a6411c89538a8c0a44150f67e449a4a (patch)
tree6b5ece8ba987d73743378c7f18a46bbf97db5cbe /drivers/misc/mei/debugfs.c
parent36eda94fcf936ccee5a8693af7738174a56be898 (diff)
downloadlinux-a42f82f57a6411c89538a8c0a44150f67e449a4a.tar.xz
mei: 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mei/debugfs.c')
-rw-r--r--drivers/misc/mei/debugfs.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/misc/mei/debugfs.c b/drivers/misc/mei/debugfs.c
index 7135a7186940..e3870f22d238 100644
--- a/drivers/misc/mei/debugfs.c
+++ b/drivers/misc/mei/debugfs.c
@@ -24,12 +24,6 @@
#include "mei_dev.h"
#include "hw.h"
-static int mei_dbgfs_open(struct inode *inode, struct file *file)
-{
- file->private_data = inode->i_private;
- return 0;
-}
-
static ssize_t mei_dbgfs_read_meclients(struct file *fp, char __user *ubuf,
size_t cnt, loff_t *ppos)
{
@@ -76,7 +70,7 @@ out:
}
static const struct file_operations mei_dbgfs_fops_meclients = {
- .open = mei_dbgfs_open,
+ .open = simple_open,
.read = mei_dbgfs_read_meclients,
.llseek = generic_file_llseek,
};
@@ -100,7 +94,7 @@ static ssize_t mei_dbgfs_read_devstate(struct file *fp, char __user *ubuf,
return ret;
}
static const struct file_operations mei_dbgfs_fops_devstate = {
- .open = mei_dbgfs_open,
+ .open = simple_open,
.read = mei_dbgfs_read_devstate,
.llseek = generic_file_llseek,
};