From patchwork Fri Jul 22 19:17:51 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: riyer@nvidia.com X-Patchwork-Id: 1000812 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p6MJHZmB013024 for ; Fri, 22 Jul 2011 19:17:35 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755083Ab1GVTRS (ORCPT ); Fri, 22 Jul 2011 15:17:18 -0400 Received: from hqemgate04.nvidia.com ([216.228.121.35]:9682 "EHLO hqemgate04.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755062Ab1GVTRQ (ORCPT ); Fri, 22 Jul 2011 15:17:16 -0400 Received: from hqnvupgp06.nvidia.com (Not Verified[216.228.121.13]) by hqemgate04.nvidia.com id ; Fri, 22 Jul 2011 12:15:37 -0700 Received: from hqnvemgw02.nvidia.com ([172.17.108.22]) by hqnvupgp06.nvidia.com (PGP Universal service); Fri, 22 Jul 2011 12:17:15 -0700 X-PGP-Universal: processed; by hqnvupgp06.nvidia.com on Fri, 22 Jul 2011 12:17:15 -0700 Received: from thelma.nvidia.com (Not Verified[172.16.212.77]) by hqnvemgw02.nvidia.com with MailMarshal (v6, 7, 2, 8378) id ; Fri, 22 Jul 2011 12:17:14 -0700 Received: from riyer-desktop.nvidia.com (dhcp-172-17-150-5.nvidia.com [172.17.150.5]) by thelma.nvidia.com (8.13.8+Sun/8.8.8) with ESMTP id p6MJHDd1024670; Fri, 22 Jul 2011 12:17:13 -0700 (PDT) From: riyer@nvidia.com To: dmitry.torokhov@gmail.com Cc: rydberg@euromail.se, olof@lixom.net, amartin@nvidia.com, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, Rakesh Iyer Subject: [PATCH v1] Input: tegra-kbc - Fix support for key repeat. Date: Fri, 22 Jul 2011 12:17:51 -0700 Message-Id: <1311362271-10544-1-git-send-email-riyer@nvidia.com> X-Mailer: git-send-email 1.7.1 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Fri, 22 Jul 2011 19:17:36 +0000 (UTC) From: Rakesh Iyer To support key repeats, keyboard needs to be setup as an autorepeating device. Signed-off-by: Rakesh Iyer --- drivers/input/keyboard/tegra-kbc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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;