提交 b0769891 编写于 作者: W Wei Yongjun 提交者: Mauro Carvalho Chehab

i5100_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.
Signed-off-by: NWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 5dae92a7
......@@ -961,14 +961,8 @@ static ssize_t inject_enable_write(struct file *file, const char __user *data,
return count;
}
static int inject_enable_open(struct inode *inode, struct file *file)
{
file->private_data = inode->i_private;
return 0;
}
static const struct file_operations i5100_inject_enable_fops = {
.open = inject_enable_open,
.open = simple_open,
.write = inject_enable_write,
.llseek = generic_file_llseek,
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部