• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

device/generic/common


Commit MetaInfo

修訂7ce62c66d43d5ca5c338b546b2750fe586d30c81 (tree)
時間2018-12-19 13:05:28
作者Chih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

Update tp_smapi to 0.43

Copied from https://github.com/evgeni/tp_smapi
commit a63729a.

Change Summary

差異

--- 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