diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-14 20:55:53 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-14 20:55:53 -0400 |
| commit | 5489375d481c8456c8259b48e107d03b05309d1d (patch) | |
| tree | 2bb3c9fe3b68e135444d1e5a47fdf3a1b7adf284 | |
| parent | 355bbd8cb82e60a592f6cd86ce6dbe5677615cf4 (diff) | |
| parent | 8123e8f7c89a07cb22279b15bf47cdee0205d4a1 (diff) | |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid:
HID: completely remove apple mightymouse from blacklist
HID: support larger reports than 64 bytes in hiddev
HID: local function should be static
HID: ignore Philips IEEE802.15.4 RF Dongle
HID: ignore all recent SoundGraph iMON devices
HID: fix memory leak on error patch in debug code
HID: fix overrun in quirks initialization
HID: Drop NULL test on list_entry result
HID: driver for Twinhan USB 6253:0100 remote control
HID: adding __init/__exit macros to module init/exit functions
HID: add rumble support for Thrustmaster Dual Trigger 3-in-1
HID: ntrig tool separation and pen usages
HID: Avoid double spin_lock_init on usbhid->lock
HID: add force feedback support for Logitech WingMan Formula Force GP
HID: Support new variants of Samsung USB IR receiver (0419:0001)
HID: fix memory leak on error path in debug code
HID: fix debugfs build with !CONFIG_DEBUG_FS
HID: use debugfs for events/reports dumping
HID: use debugfs for report dumping descriptor
37 files changed, 755 insertions, 232 deletions
diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig index 7831a0318d3c..111afbe8de03 100644 --- a/drivers/hid/Kconfig +++ b/drivers/hid/Kconfig | |||
| @@ -31,21 +31,6 @@ config HID | |||
| 31 | 31 | ||
| 32 | If unsure, say Y. | 32 | If unsure, say Y. |
| 33 | 33 | ||
| 34 | config HID_DEBUG | ||
| 35 | bool "HID debugging support" | ||
| 36 | default y | ||
| 37 | depends on HID | ||
| 38 | ---help--- | ||
| 39 | This option lets the HID layer output diagnostics about its internal | ||
| 40 | state, resolve HID usages, dump HID fields, etc. Individual HID drivers | ||
| 41 | use this debugging facility to output information about individual HID | ||
| 42 | devices, etc. | ||
| 43 | |||
| 44 | This feature is useful for those who are either debugging the HID parser | ||
| 45 | or any HID hardware device. | ||
| 46 | |||
| 47 | If unsure, say Y. | ||
| 48 | |||
| 49 | config HIDRAW | 34 | config HIDRAW |
| 50 | bool "/dev/hidraw raw HID device support" | 35 | bool "/dev/hidraw raw HID device support" |
| 51 | depends on HID | 36 | depends on HID |
| @@ -152,6 +137,13 @@ config HID_GYRATION | |||
| 152 | ---help--- | 137 | ---help--- |
| 153 | Support for Gyration remote control. | 138 | Support for Gyration remote control. |
| 154 | 139 | ||
| 140 | config HID_TWINHAN | ||
| 141 | tristate "Twinhan" if EMBEDDED | ||
| 142 | depends on USB_HID | ||
| 143 | default !EMBEDDED | ||
| 144 | ---help--- | ||
| 145 | Support for Twinhan IR remote control. | ||
| 146 | |||
| 155 | config HID_KENSINGTON | 147 | config HID_KENSINGTON |
| 156 | tristate "Kensington" if EMBEDDED | 148 | tristate "Kensington" if EMBEDDED |
| 157 | depends on USB_HID | 149 | depends on USB_HID |
| @@ -176,6 +168,7 @@ config LOGITECH_FF | |||
| 176 | - Logitech WingMan Cordless RumblePad 2 | 168 | - Logitech WingMan Cordless RumblePad 2 |
| 177 | - Logitech WingMan Force 3D | 169 | - Logitech WingMan Force 3D |
| 178 | - Logitech Formula Force EX | 170 | - Logitech Formula Force EX |
| 171 | - Logitech WingMan Formula Force GP | ||
| 179 | - Logitech MOMO Force wheel | 172 | - Logitech MOMO Force wheel |
| 180 | 173 | ||
| 181 | and if you want to enable force feedback for them. | 174 | and if you want to enable force feedback for them. |
| @@ -314,9 +307,9 @@ config THRUSTMASTER_FF | |||
| 314 | depends on HID_THRUSTMASTER | 307 | depends on HID_THRUSTMASTER |
| 315 | select INPUT_FF_MEMLESS | 308 | select INPUT_FF_MEMLESS |
| 316 | ---help--- | 309 | ---help--- |
| 317 | Say Y here if you have a THRUSTMASTER FireStore Dual Power 2 or | 310 | Say Y here if you have a THRUSTMASTER FireStore Dual Power 2 or 3, |
| 318 | a THRUSTMASTER Ferrari GT Rumble Force or Force Feedback Wheel and | 311 | a THRUSTMASTER Dual Trigger 3-in-1 or a THRUSTMASTER Ferrari GT |
| 319 | want to enable force feedback support for it. | 312 | Rumble Force or Force Feedback Wheel. |
| 320 | 313 | ||
| 321 | config HID_WACOM | 314 | config HID_WACOM |
| 322 | tristate "Wacom Bluetooth devices support" if EMBEDDED | 315 | tristate "Wacom Bluetooth devices support" if EMBEDDED |
diff --git a/drivers/hid/Makefile b/drivers/hid/Makefile index db35151673b1..0de2dff5542c 100644 --- a/drivers/hid/Makefile +++ b/drivers/hid/Makefile | |||
| @@ -3,9 +3,12 @@ | |||
| 3 | # | 3 | # |
| 4 | hid-objs := hid-core.o hid-input.o | 4 | hid-objs := hid-core.o hid-input.o |
| 5 | 5 | ||
| 6 | ifdef CONFIG_DEBUG_FS | ||
| 7 | hid-objs += hid-debug.o | ||
| 8 | endif | ||
| 9 | |||
| 6 | obj-$(CONFIG_HID) += hid.o | 10 | obj-$(CONFIG_HID) += hid.o |
| 7 | 11 | ||
| 8 | hid-$(CONFIG_HID_DEBUG) += hid-debug.o | ||
| 9 | hid-$(CONFIG_HIDRAW) += hidraw.o | 12 | hid-$(CONFIG_HIDRAW) += hidraw.o |
| 10 | 13 | ||
| 11 | hid-logitech-objs := hid-lg.o | 14 | hid-logitech-objs := hid-lg.o |
| @@ -40,6 +43,7 @@ obj-$(CONFIG_HID_SUNPLUS) += hid-sunplus.o | |||
| 40 | obj-$(CONFIG_HID_GREENASIA) += hid-gaff.o | 43 | obj-$(CONFIG_HID_GREENASIA) += hid-gaff.o |
| 41 | obj-$(CONFIG_HID_THRUSTMASTER) += hid-tmff.o | 44 | obj-$(CONFIG_HID_THRUSTMASTER) += hid-tmff.o |
| 42 | obj-$(CONFIG_HID_TOPSEED) += hid-topseed.o | 45 | obj-$(CONFIG_HID_TOPSEED) += hid-topseed.o |
| 46 | obj-$(CONFIG_HID_TWINHAN) += hid-twinhan.o | ||
| 43 | obj-$(CONFIG_HID_ZEROPLUS) += hid-zpff.o | 47 | obj-$(CONFIG_HID_ZEROPLUS) += hid-zpff.o |
| 44 | obj-$(CONFIG_HID_WACOM) += hid-wacom.o | 48 | obj-$(CONFIG_HID_WACOM) += hid-wacom.o |
| 45 | 49 | ||
diff --git a/drivers/hid/hid-a4tech.c b/drivers/hid/hid-a4tech.c index 42ea359e94cf..df474c699fb8 100644 --- a/drivers/hid/hid-a4tech.c +++ b/drivers/hid/hid-a4tech.c | |||
| @@ -145,12 +145,12 @@ static struct hid_driver a4_driver = { | |||
| 145 | .remove = a4_remove, | 145 | .remove = a4_remove, |
| 146 | }; | 146 | }; |
| 147 | 147 | ||
| 148 | static int a4_init(void) | 148 | static int __init a4_init(void) |
| 149 | { | 149 | { |
| 150 | return hid_register_driver(&a4_driver); | 150 | return hid_register_driver(&a4_driver); |
| 151 | } | 151 | } |
| 152 | 152 | ||
| 153 | static void a4_exit(void) | 153 | static void __exit a4_exit(void) |
| 154 | { | 154 | { |
| 155 | hid_unregister_driver(&a4_driver); | 155 | hid_unregister_driver(&a4_driver); |
| 156 | } | 156 | } |
diff --git a/drivers/hid/hid-apple.c b/drivers/hid/hid-apple.c index 303ccce05bb3..4b96e7a898cf 100644 --- a/drivers/hid/hid-apple.c +++ b/drivers/hid/hid-apple.c | |||
| @@ -451,7 +451,7 @@ static struct hid_driver apple_driver = { | |||
| 451 | .input_mapped = apple_input_mapped, | 451 | .input_mapped = apple_input_mapped, |
| 452 | }; | 452 | }; |
| 453 | 453 | ||
| 454 | static int apple_init(void) | 454 | static int __init apple_init(void) |
| 455 | { | 455 | { |
| 456 | int ret; | 456 | int ret; |
| 457 | 457 | ||
| @@ -462,7 +462,7 @@ static int apple_init(void) | |||
| 462 | return ret; | 462 | return ret; |
| 463 | } | 463 | } |
| 464 | 464 | ||
| 465 | static void apple_exit(void) | 465 | static void __exit apple_exit(void) |
