提交 db7312a2 编写于 作者: W Wei Yongjun 提交者: Borislav Petkov

EDAC: 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.

dpatch engine is used to auto generate this patch.
(https://github.com/weiyj/dpatch)
Signed-off-by: NWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: NBorislav Petkov <borislav.petkov@amd.com>
上级 f35d852e
......@@ -846,14 +846,8 @@ static ssize_t edac_fake_inject_write(struct file *file,
return count;
}
static int debugfs_open(struct inode *inode, struct file *file)
{
file->private_data = inode->i_private;
return 0;
}
static const struct file_operations debug_fake_inject_fops = {
.open = debugfs_open,
.open = simple_open,
.write = edac_fake_inject_write,
.llseek = generic_file_llseek,
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册