1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
diff --git a/drivers/platform/x86/asus-nb-wmi.c b/drivers/platform/x86/asus-nb-wmi.c
index d5fb813bfe50..7d13193f18fb 100644
--- a/drivers/platform/x86/asus-nb-wmi.c
+++ b/drivers/platform/x86/asus-nb-wmi.c
@@ -14,7 +14,6 @@
#include <linux/input/sparse-keymap.h>
#include <linux/fb.h>
#include <linux/dmi.h>
-#include <linux/i8042.h>
#include "asus-wmi.h"
@@ -43,25 +42,6 @@ MODULE_PARM_DESC(wapf, "WAPF value");
static struct quirk_entry *quirks;
-static bool asus_q500a_i8042_filter(unsigned char data, unsigned char str,
- struct serio *port)
-{
- static bool extended;
- bool ret = false;
-
- if (str & I8042_STR_AUXDATA)
- return false;
-
- if (unlikely(data == 0xe1)) {
- extended = true;
- ret = true;
- } else if (unlikely(extended)) {
- extended = false;
- ret = true;
- }
-
- return ret;
-}
static struct quirk_entry quirk_asus_unknown = {
.wapf = 0,
@@ -69,7 +49,6 @@ static struct quirk_entry quirk_asus_unknown = {
};
static struct quirk_entry quirk_asus_q500a = {
- .i8042_filter = asus_q500a_i8042_filter,
.wmi_backlight_set_devstate = true,
};
@@ -453,15 +432,6 @@ static void asus_nb_wmi_quirks(struct asus_wmi_driver *driver)
quirks->wapf = wapf;
else
wapf = quirks->wapf;
-
- if (quirks->i8042_filter) {
- ret = i8042_install_filter(quirks->i8042_filter);
- if (ret) {
- pr_warn("Unable to install key filter\n");
- return;
- }
- pr_info("Using i8042 filter function for receiving events\n");
- }
}
static const struct key_entry asus_nb_wmi_keymap[] = {
|