ARM: tegra: KBC: Update the keyboard mapping
Alok Chauhan [Wed, 23 Mar 2011 06:23:49 +0000 (11:23 +0530)]
Update the keyboard mapping by removing reduntant keys/columns.

Original-Change-Id: I3887d1f6296568b866c5c7a8dfd3f9d2cd55b4ae
Reviewed-on: http://git-master/r/23945
Reviewed-by: Alok Chauhan <alokc@nvidia.com>
Tested-by: Alok Chauhan <alokc@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Original-Change-Id: I1dca3261ff3396a664ae040003432e75722d2927

Rebase-Id: R457cfefcbd401591031c0cd85d7c73cc815beb35

arch/arm/mach-tegra/board-cardhu-kbc.c

index 7a3170d..0a99e05 100644 (file)
 #include "gpio-names.h"
 
 #define CARDHU_ROW_COUNT       4
-#define CARDHU_COL_COUNT       6
+#define CARDHU_COL_COUNT       2
 static int plain_kbd_keycode[] = {
-       KEY_POWER,      KEY_RESERVED,   KEY_RESERVED,   KEY_RESERVED,
-                       KEY_RESERVED,   KEY_RESERVED,   KEY_RESERVED,
-       KEY_HOME,       KEY_BACK,       KEY_RESERVED,   KEY_RESERVED,
-                       KEY_RESERVED,   KEY_RESERVED,   KEY_RESERVED,
-       KEY_CAMERA,     KEY_CAMERA,     KEY_RESERVED,   KEY_RESERVED,
-                       KEY_RESERVED,   KEY_RESERVED,   KEY_RESERVED,
-       KEY_VOLUMEDOWN, KEY_VOLUMEUP,   KEY_RESERVED,   KEY_RESERVED,
-                       KEY_RESERVED,   KEY_RESERVED,   KEY_PAUSE,
-       KEY_END,        KEY_BACK,       KEY_RESERVED,   KEY_RESERVED,
-                       KEY_RESERVED,   KEY_PLAY,       KEY_PHONE,
+       KEY_POWER,      KEY_RESERVED,
+       KEY_HOME,       KEY_BACK,
+       KEY_CAMERA,     KEY_CAMERA,
+       KEY_VOLUMEDOWN, KEY_VOLUMEUP
 };
 
 static struct tegra_kbc_wake_key cardhu_wake_cfg[] = {