diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-power/bbswitch/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-power/bbswitch/files')
-rw-r--r-- | sys-power/bbswitch/files/bbswitch-0.8-kernel-4.12.patch | 18 | ||||
-rw-r--r-- | sys-power/bbswitch/files/bbswitch.modprobe | 1 |
2 files changed, 19 insertions, 0 deletions
diff --git a/sys-power/bbswitch/files/bbswitch-0.8-kernel-4.12.patch b/sys-power/bbswitch/files/bbswitch-0.8-kernel-4.12.patch new file mode 100644 index 000000000000..1db623d583e9 --- /dev/null +++ b/sys-power/bbswitch/files/bbswitch-0.8-kernel-4.12.patch @@ -0,0 +1,18 @@ +diff -uNr bbswitch-0.8/bbswitch.c bbswitch-0.8-new/bbswitch.c +--- bbswitch-0.8/bbswitch.c 2013-12-04 18:22:06.000000000 -0500 ++++ bbswitch-0.8-new/bbswitch.c 2017-07-08 01:11:54.588545766 -0400 +@@ -31,7 +31,14 @@ + #include <linux/pci.h> + #include <linux/acpi.h> + #include <linux/module.h> ++#include <linux/version.h> ++ ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,12,0) ++#include <linux/uaccess.h> ++#else + #include <asm/uaccess.h> ++#endif ++ + #include <linux/suspend.h> + #include <linux/seq_file.h> + #include <linux/pm_runtime.h> diff --git a/sys-power/bbswitch/files/bbswitch.modprobe b/sys-power/bbswitch/files/bbswitch.modprobe new file mode 100644 index 000000000000..dd6500c77131 --- /dev/null +++ b/sys-power/bbswitch/files/bbswitch.modprobe @@ -0,0 +1 @@ +options bbswitch load_state=-1 unload_state=-1
\ No newline at end of file |