diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2012-10-18 02:55:54 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-10-18 02:59:00 -0400 |
commit | f6c0df6acbfc49abe0fe593936f170cc726e21fb (patch) | |
tree | 8b953d04b74f80359a5fc5006f75624c65be3844 /drivers/input/touchscreen/edt-ft5x06.c | |
parent | 197a1e96c8be5b6005145af3a4c0e45e2d651444 (diff) |
Input: edt-ft5x06 - 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.
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>
Diffstat (limited to 'drivers/input/touchscreen/edt-ft5x06.c')
-rw-r--r-- | drivers/input/touchscreen/edt-ft5x06.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/input/touchscreen/edt-ft5x06.c b/drivers/input/touchscreen/edt-ft5x06.c index 7b786e757ba2..bcaea7a5e02b 100644 --- a/drivers/input/touchscreen/edt-ft5x06.c +++ b/drivers/input/touchscreen/edt-ft5x06.c | |||
@@ -491,14 +491,6 @@ static int edt_ft5x06_debugfs_mode_set(void *data, u64 mode) | |||
491 | DEFINE_SIMPLE_ATTRIBUTE(debugfs_mode_fops, edt_ft5x06_debugfs_mode_get, | 491 | DEFINE_SIMPLE_ATTRIBUTE(debugfs_mode_fops, edt_ft5x06_debugfs_mode_get, |
492 | edt_ft5x06_debugfs_mode_set, "%llu\n"); | 492 | edt_ft5x06_debugfs_mode_set, "%llu\n"); |
493 | 493 | ||
494 | static int edt_ft5x06_debugfs_raw_data_open(struct inode *inode, | ||
495 | struct file *file) | ||
496 | { | ||
497 | file->private_data = inode->i_private; | ||
498 | |||
499 | return 0; | ||
500 | } | ||
501 | |||
502 | static ssize_t edt_ft5x06_debugfs_raw_data_read(struct file *file, | 494 | static ssize_t edt_ft5x06_debugfs_raw_data_read(struct file *file, |
503 | char __user *buf, size_t count, loff_t *off) | 495 | char __user *buf, size_t count, loff_t *off) |
504 | { | 496 | { |
@@ -576,7 +568,7 @@ out: | |||
576 | 568 | ||
577 | 569 | ||
578 | static const struct file_operations debugfs_raw_data_fops = { | 570 | static const struct file_operations debugfs_raw_data_fops = { |
579 | .open = edt_ft5x06_debugfs_raw_data_open, | 571 | .open = simple_open, |
580 | .read = edt_ft5x06_debugfs_raw_data_read, | 572 | .read = edt_ft5x06_debugfs_raw_data_read, |
581 | }; | 573 | }; |
582 | 574 | ||