21 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
23 #include <linux/kernel.h>
24 #include <linux/module.h>
26 #include <linux/input.h>
33 #define ASUS_NB_WMI_FILE "asus-nb-wmi"
39 #define ASUS_NB_WMI_EVENT_GUID "0B3CBB35-E3C2-45ED-91C2-4C5A6D195D1C"
68 quirks = dmi->driver_data;
74 .callback = dmi_matched,
75 .ident =
"ASUSTeK COMPUTER INC. X401U",
80 .driver_data = &quirk_asus_x401u,
83 .callback = dmi_matched,
84 .ident =
"ASUSTeK COMPUTER INC. X401A1",
89 .driver_data = &quirk_asus_x401u,
92 .callback = dmi_matched,
93 .ident =
"ASUSTeK COMPUTER INC. X501U",
98 .driver_data = &quirk_asus_x401u,
101 .callback = dmi_matched,
102 .ident =
"ASUSTeK COMPUTER INC. X501A1",
107 .driver_data = &quirk_asus_x401u,
110 .callback = dmi_matched,
111 .ident =
"ASUSTeK COMPUTER INC. X55A",
116 .driver_data = &quirk_asus_x401u,
119 .callback = dmi_matched,
120 .ident =
"ASUSTeK COMPUTER INC. X55C",
125 .driver_data = &quirk_asus_x401u,
128 .callback = dmi_matched,
129 .ident =
"ASUSTeK COMPUTER INC. X55U",
134 .driver_data = &quirk_asus_x401u,
137 .callback = dmi_matched,
138 .ident =
"ASUSTeK COMPUTER INC. X55VD",
143 .driver_data = &quirk_asus_x401u,
150 quirks = &quirk_asus_unknown;
163 static const struct key_entry asus_nb_wmi_keymap[] = {
209 .keymap = asus_nb_wmi_keymap,
210 .input_name =
"Asus WMI hotkeys",
212 .detect_quirks = asus_nb_wmi_quirks,
216 static int __init asus_nb_wmi_init(
void)
221 static void __exit asus_nb_wmi_exit(
void)