linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V2] HID: corsair: Add K70 Vengeance and K70 RAPIDFIRE to
@ 2017-12-22  8:38 Aaron Bottegal
  2018-02-16 12:39 ` Jiri Kosina
  0 siblings, 1 reply; 2+ messages in thread
From: Aaron Bottegal @ 2017-12-22  8:38 UTC (permalink / raw)
  To: jikos, benjamin.tissoires; +Cc: linux-input, linux-kernel, Aaron Bottegal

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>
---
 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) },
+	/*
+	 * Vengeance K70 and K70 RAPIDFIRE share product IDs.
+	 */
+	{ HID_USB_DEVICE(USB_VENDOR_ID_CORSAIR,
+            USB_DEVICE_ID_CORSAIR_K70R) },
 	{}
 };
 
-- 
2.15.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH V2] HID: corsair: Add K70 Vengeance and K70 RAPIDFIRE to
  2017-12-22  8:38 [PATCH V2] HID: corsair: Add K70 Vengeance and K70 RAPIDFIRE to Aaron Bottegal
@ 2018-02-16 12:39 ` Jiri Kosina
  0 siblings, 0 replies; 2+ messages in thread
From: Jiri Kosina @ 2018-02-16 12:39 UTC (permalink / raw)
  To: Aaron Bottegal; +Cc: benjamin.tissoires, linux-input, linux-kernel

On Fri, 22 Dec 2017, Aaron Bottegal wrote:

> 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.

Applied to for-4.16/upstream-fixes.

-- 
Jiri Kosina
SUSE Labs

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-02-16 12:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-22  8:38 [PATCH V2] HID: corsair: Add K70 Vengeance and K70 RAPIDFIRE to Aaron Bottegal
2018-02-16 12:39 ` Jiri Kosina

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).