diff options
63 files changed, 176 insertions, 572 deletions
diff --git a/arch/arm/mach-msm/smd_debug.c b/arch/arm/mach-msm/smd_debug.c index 0c56a5aaf588..c56df9e932ae 100644 --- a/arch/arm/mach-msm/smd_debug.c +++ b/arch/arm/mach-msm/smd_debug.c | |||
| @@ -203,15 +203,9 @@ static ssize_t debug_read(struct file *file, char __user *buf, | |||
| 203 | return simple_read_from_buffer(buf, count, ppos, debug_buffer, bsize); | 203 | return simple_read_from_buffer(buf, count, ppos, debug_buffer, bsize); |
| 204 | } | 204 | } |
| 205 | 205 | ||
| 206 | static int debug_open(struct inode *inode, struct file *file) | ||
| 207 | { | ||
| 208 | file->private_data = inode->i_private; | ||
| 209 | return 0; | ||
| 210 | } | ||
| 211 | |||
| 212 | static const struct file_operations debug_ops = { | 206 | static const struct file_operations debug_ops = { |
| 213 | .read = debug_read, | 207 | .read = debug_read, |
| 214 | .open = debug_open, | 208 | .open = simple_open, |
| 215 | .llseek = default_llseek, | 209 | .llseek = default_llseek, |
| 216 | }; | 210 | }; |
| 217 | 211 | ||
diff --git a/arch/x86/kernel/kdebugfs.c b/arch/x86/kernel/kdebugfs.c index 90fcf62854bb..1d5d31ea686b 100644 --- a/arch/x86/kernel/kdebugfs.c +++ b/arch/x86/kernel/kdebugfs.c | |||
| @@ -68,16 +68,9 @@ static ssize_t setup_data_read(struct file *file, char __user *user_buf, | |||
| 68 | return count; | 68 | return count; |
| 69 | } | 69 | } |
| 70 | 70 | ||
| 71 | static int setup_data_open(struct inode *inode, struct file *file) | ||
| 72 | { | ||
| 73 | file->private_data = inode->i_private; | ||
| 74 | |||
| 75 | return 0; | ||
| 76 | } | ||
| 77 | |||
| 78 | static const struct file_operations fops_setup_data = { | 71 | static const struct file_operations fops_setup_data = { |
| 79 | .read = setup_data_read, | 72 | .read = setup_data_read, |
| 80 | .open = setup_data_open, | 73 | .open = simple_open, |
| 81 | .llseek = default_llseek, | 74 | .llseek = default_llseek, |
| 82 | }; | 75 | }; |
| 83 | 76 | ||
diff --git a/drivers/acpi/ec_sys.c b/drivers/acpi/ec_sys.c index b258cab9061c..7586544fddb4 100644 --- a/drivers/acpi/ec_sys.c +++ b/drivers/acpi/ec_sys.c | |||
| @@ -27,12 +27,6 @@ MODULE_PARM_DESC(write_support, "Dangerous, reboot and removal of battery may " | |||
| 27 | 27 | ||
| 28 | static struct dentry *acpi_ec_debugfs_dir; | 28 | static struct dentry *acpi_ec_debugfs_dir; |
| 29 | 29 | ||
| 30 | static int acpi_ec_open_io(struct inode *i, struct file *f) | ||
| 31 | { | ||
| 32 | f->private_data = i->i_private; | ||
| 33 | return 0; | ||
| 34 | } | ||
| 35 | |||
| 36 | static ssize_t acpi_ec_read_io(struct file *f, char __user *buf, | 30 | static ssize_t acpi_ec_read_io(struct file *f, char __user *buf, |
| 37 | size_t count, loff_t *off) | 31 | size_t count, loff_t *off) |
| 38 | { | 32 | { |
| @@ -95,7 +89,7 @@ static ssize_t acpi_ec_write_io(struct file *f, const char __user *buf, | |||
| 95 | 89 | ||
| 96 | static const struct file_operations acpi_ec_io_ops = { | 90 | static const struct file_operations acpi_ec_io_ops = { |
| 97 | .owner = THIS_MODULE, | 91 | .owner = THIS_MODULE, |
| 98 | .open = acpi_ec_open_io, | 92 | .open = simple_open, |
| 99 | .read = acpi_ec_read_io, | 93 | .read = acpi_ec_read_io, |
| 100 | .write = acpi_ec_write_io, | 94 | .write = acpi_ec_write_io, |
| 101 | .llseek = default_llseek, | 95 | .llseek = default_llseek, |
diff --git a/drivers/base/regmap/regmap-debugfs.c b/drivers/base/regmap/regmap-debugfs.c index 58517a5dac13..251eb70f83e7 100644 --- a/drivers/base/regmap/regmap-debugfs.c +++ b/drivers/base/regmap/regmap-debugfs.c | |||
| @@ -27,12 +27,6 @@ static size_t regmap_calc_reg_len(int max_val, char *buf, size_t buf_size) | |||
| 27 | return strlen(buf); | 27 | return strlen(buf); |
| 28 | } | 28 | } |
| 29 | 29 | ||
| 30 | static int regmap_open_file(struct inode *inode, struct file *file) | ||
| 31 | { | ||
| 32 | file->private_data = inode->i_private; | ||
| 33 | return 0; | ||
| 34 | } | ||
| 35 | |||
| 36 | static ssize_t regmap_name_read_file(struct file *file, | 30 | static ssize_t regmap_name_read_file(struct file *file, |
| 37 | char __user *user_buf, size_t count, | 31 | char __user *user_buf, size_t count, |
| 38 | loff_t *ppos) | 32 | loff_t *ppos) |
| @@ -57,7 +51,7 @@ static ssize_t regmap_name_read_file(struct file *file, | |||
| 57 | } | 51 | } |
| 58 | 52 | ||
| 59 | static const struct file_operations regmap_name_fops = { | 53 | static const struct file_operations regmap_name_fops = { |
| 60 | .open = regmap_open_file, | 54 | .open = simple_open, |
| 61 | .read = regmap_name_read_file, | 55 | .read = regmap_name_read_fi |
