Signed-off-by: Alexander Shiyan <[email protected]>
---
 drivers/input/keyboard/gpio_keys_polled.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/input/keyboard/gpio_keys_polled.c 
b/drivers/input/keyboard/gpio_keys_polled.c
index 32e5087..952c33d 100644
--- a/drivers/input/keyboard/gpio_keys_polled.c
+++ b/drivers/input/keyboard/gpio_keys_polled.c
@@ -245,7 +245,7 @@ static int gpio_keys_polled_probe(struct platform_device 
*pdev)
 
        input = poll_dev->input;
 
-       input->evbit[0] = BIT(EV_KEY);
+       input->evbit[0] = BIT(EV_KEY) | (pdata->rep ? BIT(EV_REP) : 0);
        input->name = pdev->name;
        input->phys = DRV_NAME"/input0";
        input->dev.parent = &pdev->dev;
-- 
1.7.8.6

--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to