From 11acad77632abb6e44085c86107733b537560c84 Mon Sep 17 00:00:00 2001 From: Wei Yongjun Date: Wed, 17 Oct 2012 23:55:54 -0700 Subject: [PATCH] --- yaml --- r: 346917 b: refs/heads/master c: f6c0df6acbfc49abe0fe593936f170cc726e21fb h: refs/heads/master i: 346915: b48fad9b5b1c8cc96959021f9304733e3d7dc801 v: v3 --- [refs] | 2 +- trunk/drivers/input/touchscreen/edt-ft5x06.c | 10 +--------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/[refs] b/[refs] index 2283e4483f01..86ed73815b07 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 197a1e96c8be5b6005145af3a4c0e45e2d651444 +refs/heads/master: f6c0df6acbfc49abe0fe593936f170cc726e21fb diff --git a/trunk/drivers/input/touchscreen/edt-ft5x06.c b/trunk/drivers/input/touchscreen/edt-ft5x06.c index 7b786e757ba2..bcaea7a5e02b 100644 --- a/trunk/drivers/input/touchscreen/edt-ft5x06.c +++ b/trunk/drivers/input/touchscreen/edt-ft5x06.c @@ -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) { @@ -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, };