[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <5493074094%devspam@moreofthesa.me.uk>
Date: Thu, 29 Jan 2015 13:58:09 +0000
From: Darren Salt <devspam@...eofthesa.me.uk>
To: linux-input@...r.kernel.org
Cc: jkosina@...e.cz, linux-kernel@...r.kernel.org,
stable@...r.kernel.org
Subject: [PATCH] hid-saitek: add USB ID for older R.A.T. 7
This patch is against 3.18.4, but should apply to 3.16.x and later.
Signed-off-by: Darren Salt <devspam@...eofthesa.me.uk>
diff -ur linux-3.18.orig/drivers/hid/hid-core.c linux-3.18/drivers/hid/hid-core.c
--- linux-3.18.orig/drivers/hid/hid-core.c 2015-01-29 12:01:23.620657746 +0000
+++ linux-3.18/drivers/hid/hid-core.c 2015-01-29 12:51:15.920015501 +0000
@@ -1909,6 +1909,7 @@
#endif
#if IS_ENABLED(CONFIG_HID_SAITEK)
{ HID_USB_DEVICE(USB_VENDOR_ID_SAITEK, USB_DEVICE_ID_SAITEK_PS1000) },
+ { HID_USB_DEVICE(USB_VENDOR_ID_SAITEK, USB_DEVICE_ID_SAITEK_RAT7_OLD) },
{ HID_USB_DEVICE(USB_VENDOR_ID_SAITEK, USB_DEVICE_ID_SAITEK_RAT7) },
{ HID_USB_DEVICE(USB_VENDOR_ID_SAITEK, USB_DEVICE_ID_SAITEK_MMO7) },
#endif
diff -ur linux-3.18.orig/drivers/hid/hid-ids.h linux-3.18/drivers/hid/hid-ids.h
--- linux-3.18.orig/drivers/hid/hid-ids.h 2015-01-29 12:43:02.137146055 +0000
+++ linux-3.18/drivers/hid/hid-ids.h 2015-01-29 12:50:19.929617706 +0000
@@ -787,6 +787,7 @@
#define USB_VENDOR_ID_SAITEK 0x06a3
#define USB_DEVICE_ID_SAITEK_RUMBLEPAD 0xff17
#define USB_DEVICE_ID_SAITEK_PS1000 0x0621
+#define USB_DEVICE_ID_SAITEK_RAT7_OLD 0x0ccb
#define USB_DEVICE_ID_SAITEK_RAT7 0x0cd7
#define USB_DEVICE_ID_SAITEK_MMO7 0x0cd0
diff -ur linux-3.18.orig/drivers/hid/hid-saitek.c linux-3.18/drivers/hid/hid-saitek.c
--- linux-3.18.orig/drivers/hid/hid-saitek.c 2014-10-05 20:23:04.000000000 +0100
+++ linux-3.18/drivers/hid/hid-saitek.c 2015-01-29 12:50:33.521228771 +0000
@@ -177,6 +177,8 @@
static const struct hid_device_id saitek_devices[] = {
{ HID_USB_DEVICE(USB_VENDOR_ID_SAITEK, USB_DEVICE_ID_SAITEK_PS1000),
.driver_data = SAITEK_FIX_PS1000 },
+ { HID_USB_DEVICE(USB_VENDOR_ID_SAITEK, USB_DEVICE_ID_SAITEK_RAT7_OLD),
+ .driver_data = SAITEK_RELEASE_MODE_RAT7 },
{ HID_USB_DEVICE(USB_VENDOR_ID_SAITEK, USB_DEVICE_ID_SAITEK_RAT7),
.driver_data = SAITEK_RELEASE_MODE_RAT7 },
{ HID_USB_DEVICE(USB_VENDOR_ID_SAITEK, USB_DEVICE_ID_SAITEK_MMO7),
--
| _ | Darren Salt, using Debian GNU/Linux (and Android)
| ( ) |
| X | ASCII Ribbon campaign against HTML e-mail
| / \ | http://www.asciiribbon.org/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists