diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-19 16:31:34 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-19 16:31:34 -0500 |
commit | d43a338e395371733a80ec473b40baac5f74d768 (patch) | |
tree | d4c01b62865bed1af2463d7a4eb4cb25ca46c66e /drivers/usb | |
parent | cb4aaf46c0283dd79ab2e8b8b165c0bf13ab6194 (diff) | |
parent | 62b529a7b9c11880a8820494a25db0e2ecdf3bed (diff) |
Merge branch 'for-linus' of master.kernel.org:/pub/scm/linux/kernel/git/dtor/input
* 'for-linus' of master.kernel.org:/pub/scm/linux/kernel/git/dtor/input:
Input: remove obsolete setup parameters from input drivers
Input: HIL - fix improper call to release_region()
Input: hid-lgff - treat devices as joysticks unless told otherwise
Input: HID - add support for Logitech Formula Force EX
Input: gpio-keys - switch to common GPIO API
Input: do not lock device when showing name, phys and uniq
Input: i8042 - let serio bus suspend ports
Input: psmouse - properly reset mouse on shutdown/suspend
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/input/Kconfig | 6 | ||||
-rw-r--r-- | drivers/usb/input/hid-ff.c | 3 | ||||
-rw-r--r-- | drivers/usb/input/hid-lgff.c | 12 |
3 files changed, 15 insertions, 6 deletions
diff --git a/drivers/usb/input/Kconfig b/drivers/usb/input/Kconfig index 2e71d3cca198..69a9f3b6d0a9 100644 --- a/drivers/usb/input/Kconfig +++ b/drivers/usb/input/Kconfig | |||
@@ -58,13 +58,17 @@ config HID_PID | |||
58 | devices. | 58 | devices. |
59 | 59 | ||
60 | config LOGITECH_FF | 60 | config LOGITECH_FF |
61 | bool "Logitech WingMan *3D support" | 61 | bool "Logitech devices support" |
62 | depends on HID_FF | 62 | depends on HID_FF |
63 | select INPUT_FF_MEMLESS if USB_HID | 63 | select INPUT_FF_MEMLESS if USB_HID |
64 | help | 64 | help |
65 | Say Y here if you have one of these devices: | 65 | Say Y here if you have one of these devices: |
66 | - Logitech WingMan Cordless RumblePad | 66 | - Logitech WingMan Cordless RumblePad |
67 | - Logitech WingMan Cordless RumblePad 2 | ||
67 | - Logitech WingMan Force 3D | 68 | - Logitech WingMan Force 3D |
69 | - Logitech Formula Force EX | ||
70 | - Logitech MOMO Force wheel | ||
71 | |||
68 | and if you want to enable force feedback for them. | 72 | and if you want to enable force feedback for them. |
69 | Note: if you say N here, this device will still be supported, but without | 73 | Note: if you say N here, this device will still be supported, but without |
70 | force feedback. | 74 | force feedback. |
diff --git a/drivers/usb/input/hid-ff.c b/drivers/usb/input/hid-ff.c index bc7f8e6f8c97..e431faaa6abc 100644 --- a/drivers/usb/input/hid-ff.c +++ b/drivers/usb/input/hid-ff.c | |||
@@ -54,9 +54,10 @@ struct hid_ff_initializer { | |||
54 | static struct hid_ff_initializer inits[] = { | 54 | static struct hid_ff_initializer inits[] = { |
55 | #ifdef CONFIG_LOGITECH_FF | 55 | #ifdef CONFIG_LOGITECH_FF |
56 | { 0x46d, 0xc211, hid_lgff_init }, /* Logitech Cordless rumble pad */ | 56 | { 0x46d, 0xc211, hid_lgff_init }, /* Logitech Cordless rumble pad */ |
57 | { 0x46d, 0xc219, hid_lgff_init }, /* Logitech Cordless rumble pad 2 */ | ||
57 | { 0x46d, 0xc283, hid_lgff_init }, /* Logitech Wingman Force 3d */ | 58 | { 0x46d, 0xc283, hid_lgff_init }, /* Logitech Wingman Force 3d */ |
59 | { 0x46d, 0xc294, hid_lgff_init }, /* Logitech Formula Force EX */ | ||
58 | { 0x46d, 0xc295, hid_lgff_init }, /* Logitech MOMO force wheel */ | 60 | { 0x46d, 0xc295, hid_lgff_init }, /* Logitech MOMO force wheel */ |
59 | { 0x46d, 0xc219, hid_lgff_init }, /* Logitech Cordless rumble pad 2 */ | ||
60 | { 0x46d, 0xca03, hid_lgff_init }, /* Logitech MOMO force wheel */ | 61 | { 0x46d, 0xca03, hid_lgff_init }, /* Logitech MOMO force wheel */ |
61 | #endif | 62 | #endif |
62 | #ifdef CONFIG_PANTHERLORD_FF | 63 | #ifdef CONFIG_PANTHERLORD_FF |
diff --git a/drivers/usb/input/hid-lgff.c b/drivers/usb/input/hid-lgff.c index 4df0968f852e..e6f3af3e66d1 100644 --- a/drivers/usb/input/hid-lgff.c +++ b/drivers/usb/input/hid-lgff.c | |||
@@ -52,8 +52,9 @@ static const struct dev_type devices[] = { | |||
52 | { 0x046d, 0xc211, ff_rumble }, | 52 | { 0x046d, 0xc211, ff_rumble }, |
53 | { 0x046d, 0xc219, ff_rumble }, | 53 | { 0x046d, 0xc219, ff_rumble }, |
54 | { 0x046d, 0xc283, ff_joystick }, | 54 | { 0x046d, 0xc283, ff_joystick }, |
55 | { 0x046d, 0xc294, ff_joystick }, | ||
56 | { 0x046d, 0xc295, ff_joystick }, | ||
55 | { 0x046d, 0xca03, ff_joystick }, | 57 | { 0x046d, 0xca03, ff_joystick }, |
56 | { 0x0000, 0x0000, ff_joystick } | ||
57 | }; | 58 | }; |
58 | 59 | ||
59 | static int hid_lgff_play(struct input_dev *dev, void *data, struct ff_effect *effect) | 60 | static int hid_lgff_play(struct input_dev *dev, void *data, struct ff_effect *effect) |
@@ -105,8 +106,9 @@ int hid_lgff_init(struct hid_device* hid) | |||
105 | struct input_dev *dev = hidinput->input; | 106 | struct input_dev *dev = hidinput->input; |
106 | struct hid_report *report; | 107 | struct hid_report *report; |
107 | struct hid_field *field; | 108 | struct hid_field *field; |
109 | const signed short *ff_bits = ff_joystick; | ||
108 | int error; | 110 | int error; |
109 | int i, j; | 111 | int i; |
110 | 112 | ||
111 | /* Find the report to use */ | 113 | /* Find the report to use */ |
112 | if (list_empty(report_list)) { | 114 | if (list_empty(report_list)) { |
@@ -130,12 +132,14 @@ int hid_lgff_init(struct hid_device* hid) | |||
130 | for (i = 0; i < ARRAY_SIZE(devices); i++) { | 132 | for (i = 0; i < ARRAY_SIZE(devices); i++) { |
131 | if (dev->id.vendor == devices[i].idVendor && | 133 | if (dev->id.vendor == devices[i].idVendor && |
132 | dev->id.product == devices[i].idProduct) { | 134 | dev->id.product == devices[i].idProduct) { |
133 | for (j = 0; devices[i].ff[j] >= 0; j++) | 135 | ff_bits = devices[i].ff; |
134 | set_bit(devices[i].ff[j], dev->ffbit); | ||
135 | break; | 136 | break; |
136 | } | 137 | } |
137 | } | 138 | } |
138 | 139 | ||
140 | for (i = 0; ff_bits[i] >= 0; i++) | ||
141 | set_bit(ff_bits[i], dev->ffbit); | ||
142 | |||
139 | error = input_ff_create_memless(dev, NULL, hid_lgff_play); | 143 | error = input_ff_create_memless(dev, NULL, hid_lgff_play); |
140 | if (error) | 144 | if (error) |
141 | return error; | 145 | return error; |