diff options
| -rw-r--r-- | drivers/input/misc/wistron_btns.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/drivers/input/misc/wistron_btns.c b/drivers/input/misc/wistron_btns.c index ebb08cfe2731..11fd038a078f 100644 --- a/drivers/input/misc/wistron_btns.c +++ b/drivers/input/misc/wistron_btns.c | |||
| @@ -611,10 +611,24 @@ static struct key_entry keymap_wistron_generic[] __initdata = { | |||
| 611 | { KE_END, 0 } | 611 | { KE_END, 0 } |
| 612 | }; | 612 | }; |
| 613 | 613 | ||
| 614 | static struct key_entry keymap_aopen_1557[] __initdata = { | ||
| 615 | { KE_KEY, 0x01, {KEY_HELP} }, | ||
| 616 | { KE_KEY, 0x11, {KEY_PROG1} }, | ||
| 617 | { KE_KEY, 0x12, {KEY_PROG2} }, | ||
| 618 | { KE_WIFI, 0x30 }, | ||
| 619 | { KE_KEY, 0x22, {KEY_REWIND} }, | ||
| 620 | { KE_KEY, 0x23, {KEY_FORWARD} }, | ||
| 621 | { KE_KEY, 0x24, {KEY_PLAYPAUSE} }, | ||
| 622 | { KE_KEY, 0x25, {KEY_STOPCD} }, | ||
| 623 | { KE_KEY, 0x31, {KEY_MAIL} }, | ||
| 624 | { KE_KEY, 0x36, {KEY_WWW} }, | ||
| 625 | { KE_END, 0 } | ||
| 626 | }; | ||
| 627 | |||
| 614 | static struct key_entry keymap_prestigio[] __initdata = { | 628 | static struct key_entry keymap_prestigio[] __initdata = { |
| 615 | { KE_KEY, 0x11, {KEY_PROG1} }, | 629 | { KE_KEY, 0x11, {KEY_PROG1} }, |
| 616 | { KE_KEY, 0x12, {KEY_PROG2} }, | 630 | { KE_KEY, 0x12, {KEY_PROG2} }, |
| 617 | { KE_WIFI, 0x30 }, | 631 | { KE_WIFI, 0x30 }, |
| 618 | { KE_KEY, 0x22, {KEY_REWIND} }, | 632 | { KE_KEY, 0x22, {KEY_REWIND} }, |
| 619 | { KE_KEY, 0x23, {KEY_FORWARD} }, | 633 | { KE_KEY, 0x23, {KEY_FORWARD} }, |
| 620 | { KE_KEY, 0x24, {KEY_PLAYPAUSE} }, | 634 | { KE_KEY, 0x24, {KEY_PLAYPAUSE} }, |
| @@ -985,6 +999,8 @@ static int __init select_keymap(void) | |||
| 985 | if (keymap_name != NULL) { | 999 | if (keymap_name != NULL) { |
| 986 | if (strcmp (keymap_name, "1557/MS2141") == 0) | 1000 | if (strcmp (keymap_name, "1557/MS2141") == 0) |
| 987 | keymap = keymap_wistron_ms2141; | 1001 | keymap = keymap_wistron_ms2141; |
| 1002 | else if (strcmp (keymap_name, "aopen1557") == 0) | ||
| 1003 | keymap = keymap_aopen_1557; | ||
| 988 | else if (strcmp (keymap_name, "prestigio") == 0) | 1004 | else if (strcmp (keymap_name, "prestigio") == 0) |
| 989 | keymap = keymap_prestigio; | 1005 | keymap = keymap_prestigio; |
| 990 | else if (strcmp (keymap_name, "generic") == 0) | 1006 | else if (strcmp (keymap_name, "generic") == 0) |
