[v1] Input: tegra-kbc - Fix support for key repeat.
diff mbox

Message ID 1311362271-10544-1-git-send-email-riyer@nvidia.com
State Accepted
Commit 5599d2e60b1191520778def7c0658fbc6de6d8c1
Headers show

Commit Message

riyer@nvidia.com July 22, 2011, 7:17 p.m. UTC
From: Rakesh Iyer <riyer@nvidia.com>

To support key repeats, keyboard needs to be setup as an autorepeating device.

Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
---
 drivers/input/keyboard/tegra-kbc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Dmitry Torokhov July 25, 2011, 6:20 p.m. UTC | #1
On Fri, Jul 22, 2011 at 12:17:51PM -0700, riyer@nvidia.com wrote:
> From: Rakesh Iyer <riyer@nvidia.com>
> 
> To support key repeats, keyboard needs to be setup as an autorepeating device.
> 
> Signed-off-by: Rakesh Iyer <riyer@nvidia.com>

Applied, thanks Rakesh.

Patch
diff mbox

diff --git a/drivers/input/keyboard/tegra-kbc.c b/drivers/input/keyboard/tegra-kbc.c
index 2b3b73e..da3828f 100644
--- a/drivers/input/keyboard/tegra-kbc.c
+++ b/drivers/input/keyboard/tegra-kbc.c
@@ -657,7 +657,7 @@  static int __devinit tegra_kbc_probe(struct platform_device *pdev)
 
 	input_set_drvdata(input_dev, kbc);
 
-	input_dev->evbit[0] = BIT_MASK(EV_KEY);
+	input_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_REP);
 	input_set_capability(input_dev, EV_MSC, MSC_SCAN);
 
 	input_dev->keycode = kbc->keycode;