summarylogtreecommitdiffstats
path: root/tp.patch
diff options
context:
space:
mode:
authorTimo Sarawinski2019-10-18 23:32:06 +0200
committerTimo Sarawinski2019-10-18 23:32:06 +0200
commit631570bc276ec79815adc330eaa030dd09ae6c0e (patch)
treeae603cf6eb7f907b91eabe11aea987c77ede2943 /tp.patch
parent37306a59fb7145c41b0a1a3b8463718777c61c73 (diff)
downloadaur-631570bc276ec79815adc330eaa030dd09ae6c0e.tar.gz
initial
Diffstat (limited to 'tp.patch')
-rw-r--r--tp.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/tp.patch b/tp.patch
new file mode 100644
index 000000000000..b09d3eed3975
--- /dev/null
+++ b/tp.patch
@@ -0,0 +1,22 @@
+--- thinkpad-wmi.c
++++ thinkpad-wmi.c
+@@ -31,6 +31,7 @@
+ #include <linux/device.h>
+ #include <linux/init.h>
+ #include <linux/kernel.h>
++#include <linux/version.h>
+ #include <linux/module.h>
+ #include <linux/platform_device.h>
+ #include <linux/seq_file.h>
+@@ -1297,7 +1298,11 @@
+ return 0;
+ }
+
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
++static int thinkpad_wmi_probe(struct wmi_device *wdev, const void *context)
++#else
+ static int thinkpad_wmi_probe(struct wmi_device *wdev)
++#endif
+ {
+ return thinkpad_wmi_add(wdev);
+ }