Input: add support for DragonRise PID 0011 gamepad
PATCH v3 1/1 Input: add support for DragonRise PID 0011 gamepad
These three patches add support for DragonRise Inc. USB PID 0x0011 gamepad. This version is based on recent Linus' master (namely bffb276) and is using single file for both generic and force feedback support.
[PATCH 1/3] Input: rename hid-drff.c to hid-dr.c [PATCH 2/3] Input: add support for DragonRise PID 0011 gamepad [PATCH 3/3] Input: update dragonrise Kconfig description
drivers/hid/Kconfig | 7 +- drivers/hid/Makefile | 2 +- drivers/hid/hid-core.c | 1 + drivers/hid/hid-dr.c | 312 ++++++++++++++++++++++++++++++++++++++++++++++++ drivers/hid/hid-drff.c | 197 ------------------------------ 5 files changed, 320 insertions(+), 199 deletions(-)
PATCH 1/3 Input: rename hid-drff.c to hid-dr.c
Rename drivers/hid/hid-drff.c (a DragonRise Inc. force feedback gamepad driver) to driver/hid/hid-dr.c.
This prepares it for addition of support for another gamepad, without force feedback.
--- drivers/hid/Makefile | 2 +- drivers/hid/hid-dr.c | 197 ++++++++++++++++++++++++++++++++++++++++++++++++ drivers/hid/hid-drff.c | 197 ------------------------------------------------ 3 files changed, 198 insertions(+), 198 deletions(-) create mode 100644 drivers/hid/hid-dr.c delete mode 100644 drivers/hid/hid-drff.c
drivers/hid/Makefile +1 -1
@@ -34,7 +34,7 @@ obj-$(CONFIG_HID_CANDO) += hid-cando.o obj-$(CONFIG_HID_CHERRY) += hid-cherry.o obj-$(CONFIG_HID_CHICONY) += hid-chicony.o obj-$(CONFIG_HID_CYPRESS) += hid-cypress.o -obj-$(CONFIG_HID_DRAGONRISE) += hid-drff.o +obj-$(CONFIG_HID_DRAGONRISE) += hid-dr.o obj-$(CONFIG_HID_EMS_FF) += hid-emsff.o obj-$(CONFIG_HID_EGALAX) += hid-egalax.o obj-$(CONFIG_HID_ELECOM) += hid-elecom.o
drivers/hid/hid-dr.c new file +197 -0
197 lines not on this page · raw message
drivers/hid/hid-drff.c deleted +0 -197
197 lines not on this page · raw message
Signature · 1 line
1.7.2.3
PATCH 2/3 Input: add support for DragonRise PID 0011 gamepad
In reply to Nikolai KondrashovAdd support for DragonRise Inc. gamepad with USB PID 0x0011 by fixing its report descriptor. This mainly removes spurious axis.
--- drivers/hid/hid-core.c | 1 + drivers/hid/hid-dr.c | 117 +++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 117 insertions(+), 1 deletions(-)
drivers/hid/hid-core.c +1 -0
@@ -1328,6 +1328,7 @@ static const struct hid_device_id hid_have_special_driver[] = { { HID_USB_DEVICE(USB_VENDOR_ID_CYPRESS, USB_DEVICE_ID_CYPRESS_MOUSE) }, { HID_USB_DEVICE(USB_VENDOR_ID_CYPRESS, USB_DEVICE_ID_CYPRESS_TRUETOUCH) }, { HID_USB_DEVICE(USB_VENDOR_ID_DRAGONRISE, 0x0006) }, + { HID_USB_DEVICE(USB_VENDOR_ID_DRAGONRISE, 0x0011) }, { HID_USB_DEVICE(USB_VENDOR_ID_DWAV, USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH) }, { HID_USB_DEVICE(USB_VENDOR_ID_DWAV, USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH1) }, { HID_USB_DEVICE(USB_VENDOR_ID_DWAV, USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH2) },
drivers/hid/hid-dr.c +116 -1
141 lines not on this page · raw message
Signature · 1 line
1.7.2.3
PATCH 3/3 Input: update dragonrise Kconfig description
In reply to Nikolai KondrashovAdd list of (supposedly) supported gamepads to dragonrise driver Kconfig description.
--- drivers/hid/Kconfig | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-)
drivers/hid/Kconfig +6 -1
@@ -140,7 +140,12 @@ config HID_DRAGONRISE tristate "DragonRise Inc. game controller" depends on USB_HID ---help--- - Say Y here if you have DragonRise Inc.game controllers. + Say Y here if you have DragonRise Inc. game controllers. + These might be branded as: + - Tesun USB-703 + - Media-tech MT1504 "Rogue" + - DVTech JS19 "Gear" + - Defender Game Master config DRAGONRISE_FF bool "DragonRise Inc. force feedback"
Signature · 1 line
1.7.2.3
Jiri Kosina
AppliedQuoted 8 lines · Nikolai Kondrashov
These three patches add support for DragonRise Inc. USB PID
0x0011gamepad. This version is based on recent Linus' master (namely bffb276) and is using single file for both generic and force feedback support.[PATCH 1/3] Input: rename
hid-drff.ctohid-dr.c[PATCH 2/3] Input: add support for DragonRise PID 0011 gamepad [PATCH 3/3] Input: update dragonriseKconfigdescription
Quoted 6 lines
drivers/hid/Kconfig | 7 +- drivers/hid/Makefile | 2 +- drivers/hid/hid-core.c | 1 + drivers/hid/hid-dr.c | 312 ++++++++++++++++++++++++++++++++++++++++++++++++ drivers/hid/hid-drff.c | 197 ------------------------------ 5 files changed, 320 insertions(+), 199 deletions(-)
Applied, thanks Nikolai.
Signature · 2 lines
Jiri Kosina SUSE Labs, Novell Inc.