summaryrefslogtreecommitdiff
path: root/drivers/input/keyboard
diff options
context:
space:
mode:
authorNitin Kumbhar <nkumbhar@nvidia.com>2012-01-03 11:53:27 +0530
committerVarun Wadekar <vwadekar@nvidia.com>2012-01-03 00:55:40 -0800
commitffab3e2c0bbfa1b150c01b118c9ffd2b29426bb1 (patch)
tree27832ddbd4c513c5386f94171b486a6fcf1b53fe /drivers/input/keyboard
parentad6a2a1aaf0ebc93d7e6f7d638588f200596a3a3 (diff)
input: tegra: kbc: add disable_ev_rep for auto repeat event
A flag, disable_ev_rep, is added to enable/disable repeat events reported from the keyboard driver. BUG 918758 Change-Id: I65be2f795fd64ebb7d36ad278aa2b24362c1e5ea Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com> Reviewed-on: http://git-master/r/72952 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Diffstat (limited to 'drivers/input/keyboard')
-rw-r--r--drivers/input/keyboard/tegra-kbc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/input/keyboard/tegra-kbc.c b/drivers/input/keyboard/tegra-kbc.c
index 152cbf2af5f5..24f81d9d26d2 100644
--- a/drivers/input/keyboard/tegra-kbc.c
+++ b/drivers/input/keyboard/tegra-kbc.c
@@ -707,7 +707,10 @@ static int __devinit tegra_kbc_probe(struct platform_device *pdev)
input_set_drvdata(input_dev, kbc);
- input_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_REP);
+ input_dev->evbit[0] = BIT_MASK(EV_KEY);
+ if (!pdata->disable_ev_rep)
+ input_dev->evbit[0] |= BIT_MASK(EV_REP);
+
input_set_capability(input_dev, EV_MSC, MSC_SCAN);
input_dev->keycode = kbc->keycode;