]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
HID: corsair: Add K70 Vengeance and K70 RAPIDFIRE to
authorAaron Bottegal <aaronbottegal@gmail.com>
Fri, 22 Dec 2017 08:38:14 +0000 (03:38 -0500)
committerJiri Kosina <jkosina@suse.cz>
Fri, 16 Feb 2018 12:38:16 +0000 (13:38 +0100)
K70 Vengeance 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.

V2: Fix spelling.

Signed-off-by: Aaron Bottegal <aaronbottegal@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-corsair.c

index 6c9c8fe1bcb27e6cc7cf7681e7fb7f5a1b05e522..ec9e060ec46cc8ea381dfb70284e2c827eceee64 100644 (file)
@@ -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
  */
 
 /*
@@ -721,6 +724,11 @@ static const struct hid_device_id corsair_devices[] = {
             USB_DEVICE_ID_CORSAIR_GLAIVE_RGB) },
        { HID_USB_DEVICE(USB_VENDOR_ID_CORSAIR,
             USB_DEVICE_ID_CORSAIR_SCIMITAR_PRO_RGB) },
+       /*
+        * Vengeance K70 and K70 RAPIDFIRE share product IDs.
+        */
+       { HID_USB_DEVICE(USB_VENDOR_ID_CORSAIR,
+            USB_DEVICE_ID_CORSAIR_K70R) },
        {}
 };