Commit f7343deb authored by Vimal Singh's avatar Vimal Singh Committed by Tony Lindgren

omap: Fix keymap for zoom2 according to matrix keypad framwork

Interpretation of 'row' and 'col' got reversed in matrix keymap
framework. Also last element '0', present in keymap array, is no
more needed.
Correcting zoom2 keyboard keymap accordingly.
Signed-off-by: default avatarVimal Singh <vimalsingh@ti.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 156171c7
...@@ -30,57 +30,56 @@ ...@@ -30,57 +30,56 @@
/* Zoom2 has Qwerty keyboard*/ /* Zoom2 has Qwerty keyboard*/
static int board_keymap[] = { static int board_keymap[] = {
KEY(0, 0, KEY_E), KEY(0, 0, KEY_E),
KEY(1, 0, KEY_R), KEY(0, 1, KEY_R),
KEY(2, 0, KEY_T), KEY(0, 2, KEY_T),
KEY(3, 0, KEY_HOME), KEY(0, 3, KEY_HOME),
KEY(6, 0, KEY_I), KEY(0, 6, KEY_I),
KEY(7, 0, KEY_LEFTSHIFT), KEY(0, 7, KEY_LEFTSHIFT),
KEY(0, 1, KEY_D), KEY(1, 0, KEY_D),
KEY(1, 1, KEY_F), KEY(1, 1, KEY_F),
KEY(2, 1, KEY_G), KEY(1, 2, KEY_G),
KEY(3, 1, KEY_SEND), KEY(1, 3, KEY_SEND),
KEY(6, 1, KEY_K), KEY(1, 6, KEY_K),
KEY(7, 1, KEY_ENTER), KEY(1, 7, KEY_ENTER),
KEY(0, 2, KEY_X), KEY(2, 0, KEY_X),
KEY(1, 2, KEY_C), KEY(2, 1, KEY_C),
KEY(2, 2, KEY_V), KEY(2, 2, KEY_V),
KEY(3, 2, KEY_END), KEY(2, 3, KEY_END),
KEY(6, 2, KEY_DOT), KEY(2, 6, KEY_DOT),
KEY(7, 2, KEY_CAPSLOCK), KEY(2, 7, KEY_CAPSLOCK),
KEY(0, 3, KEY_Z), KEY(3, 0, KEY_Z),
KEY(1, 3, KEY_KPPLUS), KEY(3, 1, KEY_KPPLUS),
KEY(2, 3, KEY_B), KEY(3, 2, KEY_B),
KEY(3, 3, KEY_F1), KEY(3, 3, KEY_F1),
KEY(6, 3, KEY_O), KEY(3, 6, KEY_O),
KEY(7, 3, KEY_SPACE), KEY(3, 7, KEY_SPACE),
KEY(0, 4, KEY_W), KEY(4, 0, KEY_W),
KEY(1, 4, KEY_Y), KEY(4, 1, KEY_Y),
KEY(2, 4, KEY_U), KEY(4, 2, KEY_U),
KEY(3, 4, KEY_F2), KEY(4, 3, KEY_F2),
KEY(4, 4, KEY_VOLUMEUP), KEY(4, 4, KEY_VOLUMEUP),
KEY(6, 4, KEY_L), KEY(4, 6, KEY_L),
KEY(7, 4, KEY_LEFT), KEY(4, 7, KEY_LEFT),
KEY(0, 5, KEY_S), KEY(5, 0, KEY_S),
KEY(1, 5, KEY_H), KEY(5, 1, KEY_H),
KEY(2, 5, KEY_J), KEY(5, 2, KEY_J),
KEY(3, 5, KEY_F3), KEY(5, 3, KEY_F3),
KEY(5, 5, KEY_VOLUMEDOWN), KEY(5, 5, KEY_VOLUMEDOWN),
KEY(6, 5, KEY_M), KEY(5, 6, KEY_M),
KEY(4, 5, KEY_ENTER), KEY(5, 7, KEY_ENTER),
KEY(7, 5, KEY_RIGHT), KEY(6, 0, KEY_Q),
KEY(0, 6, KEY_Q), KEY(6, 1, KEY_A),
KEY(1, 6, KEY_A), KEY(6, 2, KEY_N),
KEY(2, 6, KEY_N), KEY(6, 3, KEY_BACKSPACE),
KEY(3, 6, KEY_BACKSPACE),
KEY(6, 6, KEY_P), KEY(6, 6, KEY_P),
KEY(7, 6, KEY_UP),
KEY(6, 7, KEY_SELECT), KEY(6, 7, KEY_SELECT),
KEY(7, 7, KEY_DOWN), KEY(7, 0, KEY_PROG1), /*MACRO 1 <User defined> */
KEY(0, 7, KEY_PROG1), /*MACRO 1 <User defined> */ KEY(7, 1, KEY_PROG2), /*MACRO 2 <User defined> */
KEY(1, 7, KEY_PROG2), /*MACRO 2 <User defined> */ KEY(7, 2, KEY_PROG3), /*MACRO 3 <User defined> */
KEY(2, 7, KEY_PROG3), /*MACRO 3 <User defined> */ KEY(7, 3, KEY_PROG4), /*MACRO 4 <User defined> */
KEY(3, 7, KEY_PROG4), /*MACRO 4 <User defined> */ KEY(7, 5, KEY_RIGHT),
0 KEY(7, 6, KEY_UP),
KEY(7, 7, KEY_DOWN)
}; };
static struct matrix_keymap_data board_map_data = { static struct matrix_keymap_data board_map_data = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment