diff options
| -rw-r--r-- | drivers/hid/hid-debug.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/hid/hid-debug.c b/drivers/hid/hid-debug.c index b48100236df8..c530476edba6 100644 --- a/drivers/hid/hid-debug.c +++ b/drivers/hid/hid-debug.c | |||
| @@ -1072,11 +1072,6 @@ static int hid_debug_rdesc_show(struct seq_file *f, void *p) | |||
| 1072 | return 0; | 1072 | return 0; |
| 1073 | } | 1073 | } |
| 1074 | 1074 | ||
| 1075 | static int hid_debug_rdesc_open(struct inode *inode, struct file *file) | ||
| 1076 | { | ||
| 1077 | return single_open(file, hid_debug_rdesc_show, inode->i_private); | ||
| 1078 | } | ||
| 1079 | |||
| 1080 | static int hid_debug_events_open(struct inode *inode, struct file *file) | 1075 | static int hid_debug_events_open(struct inode *inode, struct file *file) |
| 1081 | { | 1076 | { |
| 1082 | int err = 0; | 1077 | int err = 0; |
| @@ -1211,12 +1206,7 @@ static int hid_debug_events_release(struct inode *inode, struct file *file) | |||
| 1211 | return 0; | 1206 | return 0; |
| 1212 | } | 1207 | } |
| 1213 | 1208 | ||
| 1214 | static const struct file_operations hid_debug_rdesc_fops = { | 1209 | DEFINE_SHOW_ATTRIBUTE(hid_debug_rdesc); |
| 1215 | .open = hid_debug_rdesc_open, | ||
| 1216 | .read = seq_read, | ||
| 1217 | .llseek = seq_lseek, | ||
| 1218 | .release = single_release, | ||
| 1219 | }; | ||
| 1220 | 1210 | ||
| 1221 | static const struct file_operations hid_debug_events_fops = { | 1211 | static const struct file_operations hid_debug_events_fops = { |
| 1222 | .owner = THIS_MODULE, | 1212 | .owner = THIS_MODULE, |
