aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/platform/x86/ideapad-laptop.c28
1 files changed, 2 insertions, 26 deletions
diff --git a/drivers/platform/x86/ideapad-laptop.c b/drivers/platform/x86/ideapad-laptop.c
index b2bbddd09a52..5b6f18b18801 100644
--- a/drivers/platform/x86/ideapad-laptop.c
+++ b/drivers/platform/x86/ideapad-laptop.c
@@ -284,19 +284,7 @@ static int debugfs_status_show(struct seq_file *s, void *data)
284 284
285 return 0; 285 return 0;
286} 286}
287 287DEFINE_SHOW_ATTRIBUTE(debugfs_status);
288static int debugfs_status_open(struct inode *inode, struct file *file)
289{
290 return single_open(file, debugfs_status_show, inode->i_private);
291}
292
293static const struct file_operations debugfs_status_fops = {
294 .owner = THIS_MODULE,
295 .open = debugfs_status_open,
296 .read = seq_read,
297 .llseek = seq_lseek,
298 .release = single_release,
299};
300 288
301static int debugfs_cfg_show(struct seq_file *s, void *data) 289static int debugfs_cfg_show(struct seq_file *s, void *data)
302{ 290{
@@ -337,19 +325,7 @@ static int debugfs_cfg_show(struct seq_file *s, void *data)
337 } 325 }
338 return 0; 326 return 0;
339} 327}
340 328DEFINE_SHOW_ATTRIBUTE(debugfs_cfg);
341static int debugfs_cfg_open(struct inode *inode, struct file *file)
342{
343 return single_open(file, debugfs_cfg_show, inode->i_private);
344}
345
346static const struct file_operations debugfs_cfg_fops = {
347 .owner = THIS_MODULE,
348 .open = debugfs_cfg_open,
349 .read = seq_read,
350 .llseek = seq_lseek,
351 .release = single_release,
352};
353 329
354static int ideapad_debugfs_init(struct ideapad_private *priv) 330static int ideapad_debugfs_init(struct ideapad_private *priv)
355{ 331{