提交 a276d6ce 编写于 作者: D Duan Jiong 提交者: Dave Airlie

DRM: Armada: 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: NDuan Jiong <duanj.fnst@cn.fujitsu.com>
Signed-off-by: NDave Airlie <airlied@redhat.com>
上级 0a5a5499
......@@ -95,15 +95,9 @@ static int armada_debugfs_write(struct file *file, const char __user *ptr,
return len;
}
static int armada_debugfs_reg_w_open(struct inode *inode, struct file *file)
{
file->private_data = inode->i_private;
return 0;
}
static const struct file_operations fops_reg_w = {
.owner = THIS_MODULE,
.open = armada_debugfs_reg_w_open,
.open = simple_open,
.write = armada_debugfs_write,
.llseek = noop_llseek,
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册