summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2012-11-29 08:57:17 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2012-11-29 09:31:26 -0800
commit1a22e16fc3d6abc8d6323cc0973435439932fe5f (patch)
treea04f5164ecdd53c5f55fb54b303e765ee5c566e5
parent16ff7cb1848a8898ff19f77b4a9632a73ff98457 (diff)
downloadop-kernel-dev-1a22e16fc3d6abc8d6323cc0973435439932fe5f.zip
op-kernel-dev-1a22e16fc3d6abc8d6323cc0973435439932fe5f.tar.gz
Input: gpio-keys-polled - honor 'autorepeat' setting in platform data
Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
-rw-r--r--drivers/input/keyboard/gpio_keys_polled.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/input/keyboard/gpio_keys_polled.c b/drivers/input/keyboard/gpio_keys_polled.c
index 32e5087..d72d0e5 100644
--- a/drivers/input/keyboard/gpio_keys_polled.c
+++ b/drivers/input/keyboard/gpio_keys_polled.c
@@ -245,7 +245,6 @@ static int gpio_keys_polled_probe(struct platform_device *pdev)
input = poll_dev->input;
- input->evbit[0] = BIT(EV_KEY);
input->name = pdev->name;
input->phys = DRV_NAME"/input0";
input->dev.parent = &pdev->dev;
@@ -255,6 +254,10 @@ static int gpio_keys_polled_probe(struct platform_device *pdev)
input->id.product = 0x0001;
input->id.version = 0x0100;
+ __set_bit(EV_KEY, input->evbit);
+ if (pdata->rep)
+ __set_bit(EV_REP, input->evbit);
+
for (i = 0; i < pdata->nbuttons; i++) {
struct gpio_keys_button *button = &pdata->buttons[i];
struct gpio_keys_button_data *bdata = &bdev->data[i];
OpenPOWER on IntegriCloud