aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/keyboard
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2010-04-06 01:29:09 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2010-04-06 02:02:00 -0400
commit9d32c30542f9ecdb4b96a1a960924c9f403e3562 (patch)
treeaccdc04a9b837b3531e4c53f4cd0dfe8b04ec0e0 /drivers/input/keyboard
parent5e28d8eb68c12eab9c4a47b42ba993a6420d71d3 (diff)
Input: matrix_keypad - allow platform to disable key autorepeat
In an embedded system the matrix_keypad driver might be used to interface with an external control panel and not an actual keyboard. On the control panel some of the keys could be used to turn on/off various functions. If key autorepeat is enabled this causes the function to quickly toggle between the on and off states and makes operation difficult. Add an option in the platform-specific data to disable the key autorepeat. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/keyboard')
-rw-r--r--drivers/input/keyboard/matrix_keypad.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/input/keyboard/matrix_keypad.c b/drivers/input/keyboard/matrix_keypad.c
index d3c8b61a941..f9d86cfb0db 100644
--- a/drivers/input/keyboard/matrix_keypad.c
+++ b/drivers/input/keyboard/matrix_keypad.c
@@ -373,7 +373,9 @@ static int __devinit matrix_keypad_probe(struct platform_device *pdev)
373 input_dev->name = pdev->name; 373 input_dev->name = pdev->name;
374 input_dev->id.bustype = BUS_HOST; 374 input_dev->id.bustype = BUS_HOST;
375 input_dev->dev.parent = &pdev->dev; 375 input_dev->dev.parent = &pdev->dev;
376 input_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_REP); 376 input_dev->evbit[0] = BIT_MASK(EV_KEY);
377 if (!pdata->no_autorepeat)
378 input_dev->evbit[0] |= BIT_MASK(EV_REP);
377 input_dev->open = matrix_keypad_start; 379 input_dev->open = matrix_keypad_start;
378 input_dev->close = matrix_keypad_stop; 380 input_dev->close = matrix_keypad_stop;
379 381