From: Ken Lierman<[email protected]>
Subject: [PATCH] fix keypad mapping on customer reference hardware

Several keys are not mapped correctly and do not result in the correct
keys being generated.  Currently these are the '?', up and down arrows,
and the control keys.

Key mappings are fixed here.

Signed-off-by: Ken Lierman<[email protected]
---
 arch/x86/kernel/mrst.c         |   10 +++++-----
 include/linux/i2c/tc35894xbg.h |    1 +
 2 files changed, 6 insertions(+), 5 deletions(-)

Index: linux-2.6.35/arch/x86/kernel/mrst.c
===================================================================
--- linux-2.6.35.orig/arch/x86/kernel/mrst.c
+++ linux-2.6.35/arch/x86/kernel/mrst.c
@@ -917,14 +917,14 @@ static const unsigned short tc35894xbg_n
     KEY_LEFTSHIFT,    KEY_VOLUMEUP,    KEY_VOLUMEDOWN,    KEY_RESERVED,
     KEY_RESERVED,    KEY_RESERVED,    KEY_RESERVED,    KEY_RESERVED,
     /* Row 2 */
-    KEY_SYM,    KEY_RESERVED,    KEY_RESERVED,    KEY_RESERVED,
+    KEY_LEFTCTRL,    KEY_RESERVED,    KEY_RESERVED,    KEY_RESERVED,
     KEY_RESERVED,    KEY_RESERVED,    KEY_RESERVED,    KEY_RESERVED,
     /* Row 3 */
     KEY_FN,        KEY_Z,        KEY_X,        KEY_O,
     KEY_Y,        KEY_B,        KEY_T,        KEY_P,
     /* Row 4 */
-    KEY_LEFTCTRL,    KEY_A,        KEY_S,        KEY_I,
-    KEY_K,        KEY_COMMA,    KEY_PAGEUP,    KEY_ENTER,
+    KEY_RIGHTCTRL,    KEY_A,        KEY_S,        KEY_I,
+    KEY_K,        KEY_COMMA,    KEY_UP,        KEY_ENTER,
     /* Row 5 */
     KEY_BACKSPACE,    KEY_Q,        KEY_D,        KEY_U,
     KEY_J,        KEY_M,        KEY_LEFT,    KEY_AT,
@@ -932,8 +932,8 @@ static const unsigned short tc35894xbg_n
     KEY_RESERVED,    KEY_W,        KEY_C,        KEY_L,
     KEY_H,    KEY_N,    KEY_RIGHT,    KEY_F,
     /* Row 7 */
-    KEY_RESERVED,    KEY_E,    KEY_V,    KEY_QUESTION,
-    KEY_G,        KEY_DOT,    KEY_PAGEDOWN,    KEY_R,
+    KEY_RESERVED,    KEY_E,    KEY_V,    KEY_QUES,
+    KEY_G,        KEY_DOT,    KEY_DOWN,    KEY_R,

 };

Index: linux-2.6.35/include/linux/i2c/tc35894xbg.h
===================================================================
--- linux-2.6.35.orig/include/linux/i2c/tc35894xbg.h
+++ linux-2.6.35/include/linux/i2c/tc35894xbg.h
@@ -37,6 +37,7 @@
#define KEY_COLON (KEY_SEMICOLON + SHIFT_NEEDED) /* ':' -> shift+; */
 #define KEY_UNDERSCORE  (KEY_MINUS + SHIFT_NEEDED) /* '_' -> shift+- */
#define KEY_QUOTE_DBL (KEY_APOSTROPHE + SHIFT_NEEDED) /* '"' -> shift+' */
+#define KEY_QUES        (KEY_SLASH + SHIFT_NEEDED) /* '?' -> shift+/ */


 #define TC_MAX_KEYMAPS          (2)

_______________________________________________
Meego-kernel mailing list
[email protected]
http://lists.meego.com/listinfo/meego-kernel

Reply via email to