From patchwork Thu Nov 29 16:46:01 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Shiyan X-Patchwork-Id: 1822021 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id D6EBD3FC23 for ; Thu, 29 Nov 2012 16:59:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751191Ab2K2Q7k (ORCPT ); Thu, 29 Nov 2012 11:59:40 -0500 Received: from fallback6.mail.ru ([94.100.176.134]:58779 "EHLO fallback6.mail.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751069Ab2K2Q7j (ORCPT ); Thu, 29 Nov 2012 11:59:39 -0500 Received: from smtp50.i.mail.ru (smtp50.i.mail.ru [94.100.177.110]) by fallback6.mail.ru (mPOP.Fallback_MX) with ESMTP id 89DC29BDB897 for ; Thu, 29 Nov 2012 20:46:25 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail; h=Message-Id:Date:Subject:Cc:To:From; bh=IRSK0nSbh4G902BqGBILznHC3BDRsqCqg7WxtraaucA=; b=OEaif8ak5IYLR9w16Wnd9xh37vQSpttbFxyktNmYzWhMsdCrhPsC8pVJWJ4v7pE+ZTX4QqENf4EJ236ExC/1xm49UdyGn6c15chQKm2s42+6FKafqzyT4tNiodbYt4V3; Received: from [188.134.40.128] (port=6480 helo=shc.zet) by smtp50.i.mail.ru with esmtpa (envelope-from ) id 1Te7FS-0001Ye-Qk; Thu, 29 Nov 2012 20:46:03 +0400 From: Alexander Shiyan To: linux-input@vger.kernel.org Cc: Dmitry Torokhov , Alexander Shiyan Subject: [PATCH] input: gpio-keys-polled: Add support for EV_REP Date: Thu, 29 Nov 2012 20:46:01 +0400 Message-Id: <1354207561-24971-1-git-send-email-shc_work@mail.ru> X-Mailer: git-send-email 1.7.8.6 X-Spam: Not detected X-Mras: Ok Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org Signed-off-by: Alexander Shiyan --- 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;