aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/misc/wistron_btns.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/misc/wistron_btns.c')
-rw-r--r--drivers/input/misc/wistron_btns.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/drivers/input/misc/wistron_btns.c b/drivers/input/misc/wistron_btns.c
index e1183aeb8ed5..39e437599d35 100644
--- a/drivers/input/misc/wistron_btns.c
+++ b/drivers/input/misc/wistron_btns.c
@@ -324,6 +324,21 @@ static struct key_entry keymap_acer_travelmate_240[] = {
324 { KE_END, 0 } 324 { KE_END, 0 }
325}; 325};
326 326
327/* Wifi subsystem only activates the led. Therefore we need to pass
328 * wifi event as a normal key, then userspace can really change the wifi state.
329 * TODO we need to export led state to userspace (wifi and mail) */
330static struct key_entry keymap_acer_travelmate_610[] = {
331 { KE_KEY, 0x01, KEY_HELP },
332 { KE_KEY, 0x02, KEY_CONFIG },
333 { KE_KEY, 0x11, KEY_PROG1 },
334 { KE_KEY, 0x12, KEY_PROG2 },
335 { KE_KEY, 0x13, KEY_PROG3 },
336 { KE_KEY, 0x14, KEY_MAIL },
337 { KE_KEY, 0x15, KEY_WWW },
338 { KE_KEY, 0x40, KEY_WLAN }, /* Wifi */
339 { KE_END, 0 }
340};
341
327static struct key_entry keymap_aopen_1559as[] = { 342static struct key_entry keymap_aopen_1559as[] = {
328 { KE_KEY, 0x01, KEY_HELP }, 343 { KE_KEY, 0x01, KEY_HELP },
329 { KE_KEY, 0x06, KEY_PROG3 }, 344 { KE_KEY, 0x06, KEY_PROG3 },
@@ -408,6 +423,15 @@ static struct dmi_system_id dmi_ids[] __initdata = {
408 }, 423 },
409 { 424 {
410 .callback = dmi_matched, 425 .callback = dmi_matched,
426 .ident = "Acer TravelMate 610",
427 .matches = {
428 DMI_MATCH(DMI_SYS_VENDOR, "ACER"),
429 DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate 610"),
430 },
431 .driver_data = keymap_acer_travelmate_610
432 },
433 {
434 .callback = dmi_matched,
411 .ident = "AOpen 1559AS", 435 .ident = "AOpen 1559AS",
412 .matches = { 436 .matches = {
413 DMI_MATCH(DMI_PRODUCT_NAME, "E2U"), 437 DMI_MATCH(DMI_PRODUCT_NAME, "E2U"),