[PATCH v2] HID: hp: Add support for HyperX Cloud II Wireless

Idan Koblik <[email protected]>
Newsgroups org.kernel.vger.linux-input,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
Add the device ID for HyperX cloud 2 wireless, which requires
the same handling as the devices support by this driver.

Tested with HyperX cloud 2 wireless.

Signed-off-by: Idan Koblik <[email protected]>
Reviewed-by: Sofia Schneider <[email protected]>
---
 drivers/hid/hid-hp.c  | 2 ++
 drivers/hid/hid-ids.h | 1 +
 2 files changed, 3 insertions(+)

diff --git a/drivers/hid/hid-hp.c b/drivers/hid/hid-hp.c
index fa53d5f6c..84ea358ea 100644
--- a/drivers/hid/hid-hp.c
+++ b/drivers/hid/hid-hp.c
@@ -381,6 +381,8 @@ static void hp_remove(struct hid_device *hdev)
 static const struct hid_device_id hp_devices[] = {
 	{ HID_USB_DEVICE(USB_VENDOR_ID_HP,
 			 USB_DEVICE_ID_HP_HYPERX_CLOUD_III_WIRELESS) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_HP,
+			 USB_DEVICE_ID_HP_HYPERX_CLOUD_II_WIRELESS) },
 	{}
 };
 MODULE_DEVICE_TABLE(hid, hp_devices);
diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h
index aa2c3a713..a8a37a936 100644
--- a/drivers/hid/hid-ids.h
+++ b/drivers/hid/hid-ids.h
@@ -697,6 +697,7 @@
 #define USB_PRODUCT_ID_HP_PIXART_OEM_USB_OPTICAL_MOUSE_0641	0x0641
 #define USB_PRODUCT_ID_HP_PIXART_OEM_USB_OPTICAL_MOUSE_1f4a	0x1f4a
 #define USB_DEVICE_ID_HP_HYPERX_CLOUD_III_WIRELESS 0x05b7
+#define USB_DEVICE_ID_HP_HYPERX_CLOUD_II_WIRELESS 0x0995
 
 #define USB_VENDOR_ID_HUION		0x256c
 #define USB_DEVICE_ID_HUION_TABLET	0x006e
-- 
2.55.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.