From patchwork Mon May 25 11:41:39 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 6473621 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7A9E79F1C1 for ; Mon, 25 May 2015 11:44:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7FCAC2034A for ; Mon, 25 May 2015 11:44:42 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 34DFE204A7 for ; Mon, 25 May 2015 11:44:37 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 37ACA26170F; Mon, 25 May 2015 13:44:36 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 7AC86261171; Mon, 25 May 2015 13:42:35 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 073B82610A7; Mon, 25 May 2015 13:42:32 +0200 (CEST) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com [209.85.215.46]) by alsa0.perex.cz (Postfix) with ESMTP id CEADE260715 for ; Mon, 25 May 2015 13:42:24 +0200 (CEST) Received: by lagv1 with SMTP id v1so47822155lag.3 for ; Mon, 25 May 2015 04:42:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=O70X83x0d19bRWtXV5jCA/8bUY4YmMmcPQWX7OaNpjs=; b=owvlDSMwQr6w7JnSCsH46M7ar2lSIpZ/I1oW0Amhtm0IQ5BnNpIG61EzsmmE3z15+H wbvlIq7Ska00kHHz5wi/ZKM7SDiIoYEckxGhOs4cqdR4gAD1ihWFrIlk4ey9zXafVWhj c3a4XqckPBcsp/hpkwzqQMrAqqNvSxjaroiM8ANGmnzcq36/IpJyhwgjnw88bgR2++hD sk/UEyItWMEE/pEDgBUQSCK8/lijzZMOS/mYwcuFn5S0cIj1oJsVS94dl7qQMB8A1kEe A1WIKEQQb/bkoR8qhv8k5XaUhuwuoW4Vucv50P0J1j8HW+55StBPMZ1g10XpjB6I/mB0 crLg== X-Received: by 10.112.213.108 with SMTP id nr12mr4604740lbc.42.1432554143534; Mon, 25 May 2015 04:42:23 -0700 (PDT) Received: from anuminas.rup.mentorg.com (ppp89-110-13-209.pppoe.avangarddsl.ru. [89.110.13.209]) by mx.google.com with ESMTPSA id si3sm2315895lbb.32.2015.05.25.04.42.21 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 25 May 2015 04:42:22 -0700 (PDT) From: Dmitry Eremin-Solenikov To: Russell King , Daniel Mack , Robert Jarzmik , Linus Walleij , Alexandre Courbot , Dmitry Torokhov , Samuel Ortiz , Lee Jones , Mark Brown , Jingoo Han , Liam Girdwood , Andrea Adami Date: Mon, 25 May 2015 14:41:39 +0300 Message-Id: <1432554113-26280-5-git-send-email-dbaryshkov@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1432554113-26280-1-git-send-email-dbaryshkov@gmail.com> References: <1432554113-26280-1-git-send-email-dbaryshkov@gmail.com> Cc: linux-gpio@vger.kernel.org, alsa-devel@alsa-project.org, linux-spi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-input@vger.kernel.org Subject: [alsa-devel] [PATCH v4 04/18] input: locomokbd: differentiate between two Enter keys X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP There are two Enter keys on collie/poodle keyboards. Make one of them to generate KEY_KPENTER rather than just KEY_ENTER. Signed-off-by: Dmitry Eremin-Solenikov Acked-by: Dmitry Torokhov --- drivers/input/keyboard/locomokbd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/keyboard/locomokbd.c b/drivers/input/keyboard/locomokbd.c index 9742c79..7645053 100644 --- a/drivers/input/keyboard/locomokbd.c +++ b/drivers/input/keyboard/locomokbd.c @@ -50,7 +50,7 @@ locomokbd_keycode[LOCOMOKBD_NUMKEYS] = { 0, 0, 0, KEY_CENTER, 0, KEY_MAIL, 0, 0, 0, 0, /* 30 - 39 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, KEY_RIGHT, /* 40 - 49 */ KEY_UP, KEY_LEFT, 0, 0, KEY_P, 0, KEY_O, KEY_I, KEY_Y, KEY_T, /* 50 - 59 */ - KEY_E, KEY_W, 0, 0, 0, 0, KEY_DOWN, KEY_ENTER, 0, 0, /* 60 - 69 */ + KEY_E, KEY_W, 0, 0, 0, 0, KEY_DOWN, KEY_KPENTER, 0, 0, /* 60 - 69 */ KEY_BACKSPACE, 0, KEY_L, KEY_U, KEY_H, KEY_R, KEY_D, KEY_Q, 0, 0, /* 70 - 79 */ 0, 0, 0, 0, 0, 0, KEY_ENTER, KEY_RIGHTSHIFT, KEY_K, KEY_J, /* 80 - 89 */ KEY_G, KEY_F, KEY_X, KEY_S, 0, 0, 0, 0, 0, 0, /* 90 - 99 */