Skip to content

Commit

Permalink
Input: gpio-keys-polled - honor 'autorepeat' setting in platform data
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
  • Loading branch information
Alexander Shiyan authored and Dmitry Torokhov committed Nov 29, 2012
1 parent 16ff7cb commit 1a22e16
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/input/keyboard/gpio_keys_polled.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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];
Expand Down

0 comments on commit 1a22e16

Please sign in to comment.