module-bbswitch rebuild

This commit is contained in:
idriskalp
2020-04-13 19:28:40 +03:00
parent 933634bbcf
commit 2de6d55f12
2 changed files with 38 additions and 2 deletions
@@ -0,0 +1,28 @@
--- a/bbswitch.c
+++ b/bbswitch.c
@@ -31,7 +31,7 @@
#include <linux/pci.h>
#include <linux/acpi.h>
#include <linux/module.h>
-#include <asm/uaccess.h>
+#include <linux/uaccess.h>
#include <linux/suspend.h>
#include <linux/seq_file.h>
#include <linux/pm_runtime.h>
@@ -375,12 +375,12 @@ static int bbswitch_pm_handler(struct notifier_block *nbp,
return 0;
}
-static struct file_operations bbswitch_fops = {
- .open = bbswitch_proc_open,
- .read = seq_read,
- .write = bbswitch_proc_write,
- .llseek = seq_lseek,
- .release= single_release
+static struct proc_ops bbswitch_fops = {
+ .proc_open = bbswitch_proc_open,
+ .proc_read = seq_read,
+ .proc_write = bbswitch_proc_write,
+ .proc_lseek = seq_lseek,
+ .proc_release= single_release
};