diff options
author | Frank de Lange <frank@unternet.org> | 2006-06-27 01:48:24 -0400 |
---|---|---|
committer | Dmitry Torokhov <dtor_core@ameritech.net> | 2006-06-27 01:48:24 -0400 |
commit | 9000195bb7ea959939b1e5fdad336e5bac59c9e9 (patch) | |
tree | 0c40773e59d2ee6a3f1854655ec3bedc4ae92c38 /drivers | |
parent | e2e8115b54aa6f159ac3dfec8d3d23b0af5fbfa0 (diff) |
Input: wistron - add mapping for Wistron MS 2111
Wistron MS 2111 (aka Medion 'Titanium' MD 9783, aka ALDI PC,
aka Fujitsu-Siemens AMILO D7800, aka ...) has 5 extra buttons,
map them. Unfortunately we only have DMI data for the Medion
box.
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/input/misc/wistron_btns.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/input/misc/wistron_btns.c b/drivers/input/misc/wistron_btns.c index e4e5be111c96..ccf0faeee5c1 100644 --- a/drivers/input/misc/wistron_btns.c +++ b/drivers/input/misc/wistron_btns.c | |||
@@ -285,6 +285,15 @@ static struct key_entry keymap_fujitsu_n3510[] = { | |||
285 | { KE_END, 0 } | 285 | { KE_END, 0 } |
286 | }; | 286 | }; |
287 | 287 | ||
288 | static struct key_entry keymap_wistron_ms2111[] = { | ||
289 | { KE_KEY, 0x11, KEY_PROG1 }, | ||
290 | { KE_KEY, 0x12, KEY_PROG2 }, | ||
291 | { KE_KEY, 0x13, KEY_PROG3 }, | ||
292 | { KE_KEY, 0x31, KEY_MAIL }, | ||
293 | { KE_KEY, 0x36, KEY_WWW }, | ||
294 | { KE_END, 0 } | ||
295 | }; | ||
296 | |||
288 | static struct key_entry keymap_wistron_ms2141[] = { | 297 | static struct key_entry keymap_wistron_ms2141[] = { |
289 | { KE_KEY, 0x11, KEY_PROG1 }, | 298 | { KE_KEY, 0x11, KEY_PROG1 }, |
290 | { KE_KEY, 0x12, KEY_PROG2 }, | 299 | { KE_KEY, 0x12, KEY_PROG2 }, |
@@ -326,6 +335,7 @@ static struct key_entry keymap_aopen_1559as[] = { | |||
326 | { KE_WIFI, 0x30, 0 }, | 335 | { KE_WIFI, 0x30, 0 }, |
327 | { KE_KEY, 0x31, KEY_MAIL }, | 336 | { KE_KEY, 0x31, KEY_MAIL }, |
328 | { KE_KEY, 0x36, KEY_WWW }, | 337 | { KE_KEY, 0x36, KEY_WWW }, |
338 | { KE_END, 0 }, | ||
329 | }; | 339 | }; |
330 | 340 | ||
331 | /* | 341 | /* |
@@ -388,6 +398,15 @@ static struct dmi_system_id dmi_ids[] = { | |||
388 | }, | 398 | }, |
389 | .driver_data = keymap_aopen_1559as | 399 | .driver_data = keymap_aopen_1559as |
390 | }, | 400 | }, |
401 | { | ||
402 | .callback = dmi_matched, | ||
403 | .ident = "Medion MD 9783", | ||
404 | .matches = { | ||
405 | DMI_MATCH(DMI_SYS_VENDOR, "MEDIONNB"), | ||
406 | DMI_MATCH(DMI_PRODUCT_NAME, "MD 9783"), | ||
407 | }, | ||
408 | .driver_data = keymap_wistron_ms2111 | ||
409 | }, | ||
391 | { NULL, } | 410 | { NULL, } |
392 | }; | 411 | }; |
393 | 412 | ||