arm: tegra: disable auto repeat key events for android platforms
Nitin Kumbhar [Tue, 3 Jan 2012 06:33:31 +0000 (11:33 +0530)]
Repeat key events reported to android causes keys (e.g power key) to be
treated differently. Disable EV_REP on android platforms for now.

BUG 918758

Change-Id: I62a7c495303a906ef72738465ce5101d244e725d
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-on: http://git-master/r/72953
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

arch/arm/mach-tegra/board-cardhu-kbc.c
arch/arm/mach-tegra/board-enterprise-kbc.c
arch/arm/mach-tegra/board-harmony-kbc.c
arch/arm/mach-tegra/board-whistler-kbc.c

index 895f69b..a693772 100644 (file)
@@ -74,6 +74,9 @@ static struct tegra_kbc_platform_data cardhu_kbc_platform_data = {
        .keymap_data = &keymap_data,
        .wake_cnt = 1,
        .wake_cfg = &cardhu_wake_cfg[0],
+#ifdef CONFIG_ANDROID
+       .disable_ev_rep = true,
+#endif
 };
 
 int __init cardhu_kbc_init(void)
index 0c4a558..982d0e4 100644 (file)
@@ -77,6 +77,9 @@ static struct tegra_kbc_platform_data enterprise_kbc_platform_data = {
        .keymap_data = &keymap_data,
        .wake_cnt = 4,
        .wake_cfg = &enterprise_wake_cfg[0],
+#ifdef CONFIG_ANDROID
+       .disable_ev_rep = true,
+#endif
 };
 
 int __init enterprise_kbc_init(void)
index a780103..156da22 100644 (file)
@@ -347,6 +347,9 @@ static struct tegra_kbc_platform_data harmony_kbc_platform_data = {
        .use_fn_map = true,
        .wake_cnt = 2,
        .wake_cfg = &harmony_wake_cfg[0],
+#ifdef CONFIG_ANDROID
+       .disable_ev_rep = true,
+#endif
 };
 
 int __init harmony_kbc_init(void)
index d46ae22..0dbcbbc 100644 (file)
@@ -89,6 +89,9 @@ static struct tegra_kbc_platform_data whistler_kbc_platform_data = {
        .keymap_data = &whistler_keymap_data,
        .use_fn_map = false,
        .wakeup = true,
+#ifdef CONFIG_ANDROID
+       .disable_ev_rep = true,
+#endif
 };
 
 static struct resource whistler_kbc_resources[] = {