summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDominic Curran <dcurran@ti.com>2008-10-28 03:30:53 +0100
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2008-10-28 03:33:04 +0100
commitb67b4b117746aef686e527c3205792db0f2c9e16 (patch)
tree07598e37a3c6cf63d20c76fcb74d232e1f7043aa /drivers
parentInput: xilinx_ps2 - various cleanups (diff)
downloadlinux-b67b4b117746aef686e527c3205792db0f2c9e16.tar.xz
linux-b67b4b117746aef686e527c3205792db0f2c9e16.zip
Input: gpio-keys - add flag to allow auto repeat
This patch adds a flag to gpio-key driver to turn on the input subsystems auto repeat feature if needed. Signed-off-by: Dominic Curran <dcurran@ti.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/input/keyboard/gpio_keys.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/input/keyboard/gpio_keys.c b/drivers/input/keyboard/gpio_keys.c
index 05f3f43582c2..ad67d763fdbd 100644
--- a/drivers/input/keyboard/gpio_keys.c
+++ b/drivers/input/keyboard/gpio_keys.c
@@ -98,6 +98,10 @@ static int __devinit gpio_keys_probe(struct platform_device *pdev)
input->id.product = 0x0001;
input->id.version = 0x0100;
+ /* Enable auto repeat feature of Linux input subsystem */
+ if (pdata->rep)
+ __set_bit(EV_REP, input->evbit);
+
ddata->input = input;
for (i = 0; i < pdata->nbuttons; i++) {