Skip to content

Commit

Permalink
Input: edt-ft5x06 - convert to use simple_open()
Browse files Browse the repository at this point in the history
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: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
  • Loading branch information
Wei Yongjun authored and Dmitry Torokhov committed Oct 18, 2012
1 parent 197a1e9 commit f6c0df6
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions drivers/input/touchscreen/edt-ft5x06.c
Original file line number Diff line number Diff line change
Expand Up @@ -491,14 +491,6 @@ static int edt_ft5x06_debugfs_mode_set(void *data, u64 mode)
DEFINE_SIMPLE_ATTRIBUTE(debugfs_mode_fops, edt_ft5x06_debugfs_mode_get,
edt_ft5x06_debugfs_mode_set, "%llu\n");

static int edt_ft5x06_debugfs_raw_data_open(struct inode *inode,
struct file *file)
{
file->private_data = inode->i_private;

return 0;
}

static ssize_t edt_ft5x06_debugfs_raw_data_read(struct file *file,
char __user *buf, size_t count, loff_t *off)
{
Expand Down Expand Up @@ -576,7 +568,7 @@ static ssize_t edt_ft5x06_debugfs_raw_data_read(struct file *file,


static const struct file_operations debugfs_raw_data_fops = {
.open = edt_ft5x06_debugfs_raw_data_open,
.open = simple_open,
.read = edt_ft5x06_debugfs_raw_data_read,
};

Expand Down

0 comments on commit f6c0df6

Please sign in to comment.