Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

device-generic-common: 提交

device/generic/common


Commit MetaInfo

修订版91378a8e37a31013597180fceb397f92d74a7ee9 (tree)
时间2018-12-26 16:48:56
作者Chih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86

更改概述

差异

--- /dev/null
+++ b/idc/QEMU_QEMU_USB_Tablet.idc
@@ -0,0 +1 @@
1+cursor.orientationAware = 1
--- /dev/null
+++ b/idc/QEMU_Virtio_Tablet.idc
@@ -0,0 +1,2 @@
1+cursor.orientationAware = 1
2+device.internal = 0
--- a/idc/Vendor_0627_Product_0001.idc
+++ /dev/null
@@ -1 +0,0 @@
1-touch.deviceType = touchScreen
--- /dev/null
+++ b/idc/VirtualBox_USB_Tablet.idc
@@ -0,0 +1 @@
1+cursor.orientationAware = 1
--- a/tp_smapi/hdaps.c
+++ b/tp_smapi/hdaps.c
@@ -62,7 +62,7 @@ static const struct thinkpad_ec_row ec_accel_args =
6262
6363 #define HDAPS_INPUT_FUZZ 4 /* input event threshold */
6464 #define HDAPS_INPUT_FLAT 4
65-#define KMACT_REMEMBER_PERIOD (HZ/10) /* keyboard/mouse persistance */
65+#define KMACT_REMEMBER_PERIOD (HZ/10) /* keyboard/mouse persistence */
6666
6767 /* Input IDs */
6868 #define HDAPS_INPUT_VENDOR PCI_VENDOR_ID_IBM
@@ -469,7 +469,11 @@ static void hdaps_calibrate(void)
469469 /* Timer handler for updating the input device. Runs in softirq context,
470470 * so avoid lenghty or blocking operations.
471471 */
472+#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
472473 static void hdaps_mousedev_poll(unsigned long unused)
474+#else
475+static void hdaps_mousedev_poll(struct timer_list *unused)
476+#endif
473477 {
474478 int ret;
475479
@@ -779,11 +783,11 @@ static int __init hdaps_init(void)
779783 hdaps_invert = 0; /* default */
780784
781785 /* Init timer before platform_driver_register, in case of suspend */
782-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0)
783- timer_setup(&hdaps_timer, hdaps_mousedev_poll, 0);
784-#else
786+#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
785787 init_timer(&hdaps_timer);
786788 hdaps_timer.function = hdaps_mousedev_poll;
789+#else
790+ timer_setup(&hdaps_timer, hdaps_mousedev_poll, 0);
787791 #endif
788792 ret = platform_driver_register(&hdaps_driver);
789793 if (ret)
--- a/tp_smapi/thinkpad_ec.c
+++ b/tp_smapi/thinkpad_ec.c
@@ -45,7 +45,7 @@
4545 #include <linux/semaphore.h>
4646 #endif
4747
48-#define TP_VERSION "0.42"
48+#define TP_VERSION "0.43"
4949
5050 MODULE_AUTHOR("Shem Multinymous");
5151 MODULE_DESCRIPTION("ThinkPad embedded controller hardware access");
--- a/tp_smapi/tp_smapi.c
+++ b/tp_smapi/tp_smapi.c
@@ -47,7 +47,7 @@
4747 #include <asm/uaccess.h>
4848 #include <asm/io.h>
4949
50-#define TP_VERSION "0.42"
50+#define TP_VERSION "0.43"
5151 #define TP_DESC "ThinkPad SMAPI Support"
5252 #define TP_DIR "smapi"
5353
Show on old repository browser