Skip to contentSkip to conversation

DRM: Armada: convert to use simple_open()

PATCH New Duan Jiong 1 participant 1 message Nov 1, 2013

Subsystems (2)
lore
Share & tools
lore

Duan Jiong

author
#0 lore raw

PATCH 1/1 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.

---
 drivers/gpu/drm/armada/armada_debugfs.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
drivers/gpu/drm/armada/armada_debugfs.c +1 -7
index 612f375..471e456 100644
@@ -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,
 };
Signature · 1 line
1.8.3.1