From patchwork Fri Dec 22 08:32:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aaron Bottegal X-Patchwork-Id: 10128937 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 76B366019D for ; Fri, 22 Dec 2017 08:33:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 65F5129FC8 for ; Fri, 22 Dec 2017 08:33:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5ABE529FCF; Fri, 22 Dec 2017 08:33:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1524529FC8 for ; Fri, 22 Dec 2017 08:33:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753948AbdLVIdd (ORCPT ); Fri, 22 Dec 2017 03:33:33 -0500 Received: from mail-qk0-f193.google.com ([209.85.220.193]:46666 "EHLO mail-qk0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755832AbdLVId3 (ORCPT ); Fri, 22 Dec 2017 03:33:29 -0500 Received: by mail-qk0-f193.google.com with SMTP id b132so3920604qkc.13; Fri, 22 Dec 2017 00:33:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=f0iG4WRvFQPNtySLn1JZHtX2YnaQoarCPIfdJ1kMEbo=; b=km0O9/don17eesENPfp0X70E21KlGpolwqURs9GRyu9tQ7HvIGGbQW/ZYcWrf4z/5D YfGX0gTj1RHQosalrpO6Dd1I4MqcHuAxUDp4I0Qmr/ge9DafXP8J+fAIfnJ2F8TsqupX +gf70B6qaesNCkGlWJMdhkDiBSJohdHwiZ+dodrXtcqAQgVD5BYHW4sAS0aqhGAf3rL2 RablTV8EBxOax+LWFpkrcjTguGncUr7uto0EemocUNLE/8NPb4EzlZOBzR5XgKGeUsxQ YBjES1jeZp5xFHTX4GJoBR12HwpOsfuDQCwVdjM2Nu2abXF7P3sI8VzY3iKIXbZ467M/ K9WA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=f0iG4WRvFQPNtySLn1JZHtX2YnaQoarCPIfdJ1kMEbo=; b=S5jbwstujyDptsV3G96xGMBMGtcc3bHGVrCCril0vlezwQtjZv6u3/ESd51nEwXRqK D26NS/XQmVZxJRgYZc6ByQMBYI96t8hsbn6sQdG/TpADzCmCAcNiHvo4h/Yebzx1jRDs AxYNizHKQKTtHc3ngp5+u2eyM0SxvHvE3CsiTegeA25kLcr2U80wm5Uy4iEH5fwW4k8f Yq2kUO3teem3ePQmkY0I9xLJaXncEorjqTnotGBD2jXcWzdPOQLA/DJ1ZKAkk40Mzg0Z nvurQuidrx4yOeyLqz26mixqzpRnvKzDMeyHQu64JNPZhhKElStXomwb1LSZumukMtyX eLIg== X-Gm-Message-State: AKGB3mKdt+7iVAnfz4rLOCF2ln1Er0K4yGb+An6rNr9KcHaxmto7w5PZ PnINCNbCOTef+qU3R2FAnLk= X-Google-Smtp-Source: ACJfBovBmD//X6Utjf7Wvz6A7BOXstk28+XgtgQ5u0XnhLUPS39dxrQJTHHZaW12Effy0pLeXAiVrw== X-Received: by 10.55.74.14 with SMTP id x14mr1030928qka.19.1513931608787; Fri, 22 Dec 2017 00:33:28 -0800 (PST) Received: from localhost.localdomain (c-73-174-130-82.hsd1.oh.comcast.net. [73.174.130.82]) by smtp.gmail.com with ESMTPSA id i5sm14011439qta.97.2017.12.22.00.33.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Dec 2017 00:33:27 -0800 (PST) From: Aaron Bottegal To: jikos@kernel.org, benjamin.tissoires@redhat.com Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Aaron Bottegal Subject: [PATCH] HID: corsair: Add K70 Vengeance and K70 RAPIDFIRE to supported devices. Date: Fri, 22 Dec 2017 03:32:52 -0500 Message-Id: <20171222083252.8643-1-aaronbottegal@gmail.com> X-Mailer: git-send-email 2.15.1 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP K70 Vengence sends garbage keypresses when changing backlight brightness. This hooks to the existing corsair driver, which filters out those invalid keypresses on similar devices in the input mapping code. Signed-off-by: Aaron Bottegal --- drivers/hid/hid-corsair.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/hid/hid-corsair.c b/drivers/hid/hid-corsair.c index 9ba5d98a1180..7aa73c758a64 100644 --- a/drivers/hid/hid-corsair.c +++ b/drivers/hid/hid-corsair.c @@ -2,11 +2,14 @@ * HID driver for Corsair devices * * Supported devices: + * - Vengeance K70 Keyboard + * - K70 RAPIDFIRE Keyboard * - Vengeance K90 Keyboard * - Scimitar PRO RGB Gaming Mouse * * Copyright (c) 2015 Clement Vuchener * Copyright (c) 2017 Oscar Campos + * Copyright (c) 2017 Aaron Bottegal */ /* @@ -717,6 +720,11 @@ static const struct hid_device_id corsair_devices[] = { CORSAIR_USE_K90_BACKLIGHT }, { HID_USB_DEVICE(USB_VENDOR_ID_CORSAIR, USB_DEVICE_ID_CORSAIR_SCIMITAR_PRO_RGB) }, + /* + * Vengence K70 and K70 RAPIDFIRE share product IDs. + */ + { HID_USB_DEVICE(USB_VENDOR_ID_CORSAIR, + USB_DEVICE_ID_CORSAIR_K70R) }, {} };