aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJayeeta Banerjee <jayeeta.banerjee@stericsson.com>2010-06-25 17:05:23 +0530
committerJohn Rigby <john.rigby@linaro.org>2010-09-02 22:45:48 -0600
commit05d466112f4197ff1c501ade13685073605b46b7 (patch)
tree57a4edf1fbec274f3dea5f95eb4b0127792db587
parent71a14cad06ffcec597c99c9fbfb1a1e7d44fe7df (diff)
downloadlinux-2.6.34-ux500-05d466112f4197ff1c501ade13685073605b46b7.tar.gz
Keypad: Disable EV_REP to disable reporting repeated key events
Disable EV_REP in ev_bit so that press/release events are reported only once. Fix is done in ST-UIB keypad, tc35893-keypad and ske-keypad ST-Ericsson Id:ER 264416 Signed-off-by: Jayeeta Banerjee <jayeeta.banerjee@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/1926 Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com> Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com> Change-Id: I2dca0a3cb8311cf5476866cc9ad99e089cc7b0ea Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/2639
-rwxr-xr-xdrivers/input/keyboard/ske_keypad.c1
-rwxr-xr-xdrivers/input/keyboard/tc35893-keypad.c2
-rw-r--r--drivers/input/keyboard/u8500-kpd.c2
3 files changed, 2 insertions, 3 deletions
diff --git a/drivers/input/keyboard/ske_keypad.c b/drivers/input/keyboard/ske_keypad.c
index 4e00e12a890..af32eb18ab7 100755
--- a/drivers/input/keyboard/ske_keypad.c
+++ b/drivers/input/keyboard/ske_keypad.c
@@ -442,7 +442,6 @@ static int __init ske_kp_probe(struct platform_device *pdev)
ske_kp_key_irqen(kp);
set_bit(EV_KEY, kp->inp_dev->evbit);
- set_bit(EV_REP, kp->inp_dev->evbit);
kp->inp_dev->id.bustype = BUS_HOST;
kp->inp_dev->name = "ske-kp";
kp->inp_dev->phys = "ske-kp/input0";
diff --git a/drivers/input/keyboard/tc35893-keypad.c b/drivers/input/keyboard/tc35893-keypad.c
index 06d6f513528..c6a234aea8e 100755
--- a/drivers/input/keyboard/tc35893-keypad.c
+++ b/drivers/input/keyboard/tc35893-keypad.c
@@ -752,7 +752,7 @@ static int __init tc35893_kp_probe(struct i2c_client *client,
goto err_board;
}
- kp->inp_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_REP);
+ kp->inp_dev->evbit[0] = BIT(EV_KEY);
kp->inp_dev->name = client->name;
kp->inp_dev->phys = "stkpd/input0";
diff --git a/drivers/input/keyboard/u8500-kpd.c b/drivers/input/keyboard/u8500-kpd.c
index 5c6b64da36f..5adb0f60571 100644
--- a/drivers/input/keyboard/u8500-kpd.c
+++ b/drivers/input/keyboard/u8500-kpd.c
@@ -285,7 +285,7 @@ static int __init u8500_kp_probe(struct platform_device *pdev)
}
printk("\nkp_probe 3");
- kp->inp_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_REP);
+ kp->inp_dev->evbit[0] = BIT(EV_KEY);
kp->inp_dev->name = pdev->name;
kp->inp_dev->phys = "stkpd/input0";