[<prev] [next>] [day] [month] [year] [list]
Message-ID: <52733FE1.5020405@cn.fujitsu.com>
Date: Fri, 01 Nov 2013 13:45:05 +0800
From: Duan Jiong <duanj.fnst@...fujitsu.com>
To: David Airlie <airlied@...ux.ie>,
Russell King <rmk+kernel@....linux.org.uk>
CC: dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org
Subject: [PATCH] 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: Duan Jiong <duanj.fnst@...fujitsu.com>
---
drivers/gpu/drm/armada/armada_debugfs.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/drivers/gpu/drm/armada/armada_debugfs.c b/drivers/gpu/drm/armada/armada_debugfs.c
index 612f375..471e456 100644
--- a/drivers/gpu/drm/armada/armada_debugfs.c
+++ b/drivers/gpu/drm/armada/armada_debugfs.c
@@ -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,
};
--
1.8.3.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists