Commit 1a22e16f authored by Alexander Shiyan's avatar Alexander Shiyan Committed by Dmitry Torokhov

Input: gpio-keys-polled - honor 'autorepeat' setting in platform data

Signed-off-by: default avatarAlexander Shiyan <shc_work@mail.ru>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 16ff7cb1
...@@ -245,7 +245,6 @@ static int gpio_keys_polled_probe(struct platform_device *pdev) ...@@ -245,7 +245,6 @@ static int gpio_keys_polled_probe(struct platform_device *pdev)
input = poll_dev->input; input = poll_dev->input;
input->evbit[0] = BIT(EV_KEY);
input->name = pdev->name; input->name = pdev->name;
input->phys = DRV_NAME"/input0"; input->phys = DRV_NAME"/input0";
input->dev.parent = &pdev->dev; input->dev.parent = &pdev->dev;
...@@ -255,6 +254,10 @@ static int gpio_keys_polled_probe(struct platform_device *pdev) ...@@ -255,6 +254,10 @@ static int gpio_keys_polled_probe(struct platform_device *pdev)
input->id.product = 0x0001; input->id.product = 0x0001;
input->id.version = 0x0100; 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++) { for (i = 0; i < pdata->nbuttons; i++) {
struct gpio_keys_button *button = &pdata->buttons[i]; struct gpio_keys_button *button = &pdata->buttons[i];
struct gpio_keys_button_data *bdata = &bdev->data[i]; struct gpio_keys_button_data *bdata = &bdev->data[i];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment