[ARM] tegra: stingray: keypad: Update keycodes
authorColin Cross <ccross@android.com>
Tue, 18 May 2010 20:49:29 +0000 (13:49 -0700)
committerColin Cross <ccross@android.com>
Wed, 6 Oct 2010 23:32:55 +0000 (16:32 -0700)
Change-Id: I2c171ce74afe46fa1e3980aa147c65b95f17c3ad
Signed-off-by: Colin Cross <ccross@android.com>
arch/arm/mach-tegra/board-stingray-keypad.c

index 4e44c1a4694bc7b99f78d4244bf50bf18a3a19ac..d6ce07be6b882e897822e3e44cd54b62cdfecb02 100644 (file)
@@ -31,8 +31,7 @@ static unsigned int stingray_row_gpios[] = {
 };
 static unsigned int stingray_col_gpios[] = {
        TEGRA_GPIO_PQ0,
-       TEGRA_GPIO_PQ1,
-       TEGRA_GPIO_PQ2
+       TEGRA_GPIO_PQ1
 };
 
 #define KEYMAP_INDEX(col, row) ((col)*ARRAY_SIZE(stingray_row_gpios) + (row))
@@ -40,14 +39,11 @@ static unsigned int stingray_col_gpios[] = {
 static const unsigned short stingray_p3_keymap[ARRAY_SIZE(stingray_col_gpios) *
                                             ARRAY_SIZE(stingray_row_gpios)] = {
        [KEYMAP_INDEX(0, 0)] = KEY_VOLUMEUP,
-       [KEYMAP_INDEX(1, 0)] = KEY_CAMERA_FOCUS,
-       [KEYMAP_INDEX(2, 0)] = KEY_MENU,
+       [KEYMAP_INDEX(1, 0)] = KEY_BACK,
        [KEYMAP_INDEX(0, 1)] = KEY_VOLUMEDOWN,
-       [KEYMAP_INDEX(1, 1)] = KEY_CAMERA,
-       [KEYMAP_INDEX(2, 1)] = KEY_HOME,
+       [KEYMAP_INDEX(1, 1)] = KEY_HOME,
        [KEYMAP_INDEX(0, 2)] = KEY_AUX,
-       [KEYMAP_INDEX(1, 2)] = KEY_SEARCH,
-       [KEYMAP_INDEX(2, 2)] = KEY_BACK,
+       [KEYMAP_INDEX(1, 2)] = KEY_MENU,
 };
 
 static struct gpio_event_matrix_info stingray_keypad_matrix_info = {