aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2009-09-14 20:55:53 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-09-14 20:55:53 -0400
commit5489375d481c8456c8259b48e107d03b05309d1d (patch)
tree2bb3c9fe3b68e135444d1e5a47fdf3a1b7adf284
parent355bbd8cb82e60a592f6cd86ce6dbe5677615cf4 (diff)
parent8123e8f7c89a07cb22279b15bf47cdee0205d4a1 (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
-rw-r--r--drivers/hid/Kconfig29
-rw-r--r--drivers/hid/Makefile6
-rw-r--r--drivers/hid/hid-a4tech.c4
-rw-r--r--drivers/hid/hid-apple.c4
-rw-r--r--drivers/hid/hid-belkin.c4
-rw-r--r--drivers/hid/hid-cherry.c4
-rw-r--r--drivers/hid/hid-chicony.c4
-rw-r--r--drivers/hid/hid-core.c71
-rw-r--r--drivers/hid/hid-cypress.c4
-rw-r--r--drivers/hid/hid-debug.c439
-rw-r--r--drivers/hid/hid-ezkey.c4
-rw-r--r--drivers/hid/hid-gyration.c4
-rw-r--r--drivers/hid/hid-ids.h14
-rw-r--r--drivers/hid/hid-input.c13
-rw-r--r--drivers/hid/hid-kensington.c4
-rw-r--r--drivers/hid/hid-kye.c4
-rw-r--r--drivers/hid/hid-lg.c6
-rw-r--r--drivers/hid/hid-lgff.c6
-rw-r--r--drivers/hid/hid-microsoft.c4
-rw-r--r--drivers/hid/hid-monterey.c4
-rw-r--r--drivers/hid/hid-ntrig.c37
-rw-r--r--drivers/hid/hid-petalynx.c4
-rw-r--r--drivers/hid/hid-pl.c4
-rw-r--r--drivers/hid/hid-samsung.c43
-rw-r--r--drivers/hid/hid-sjoy.c4
-rw-r--r--drivers/hid/hid-sony.c4
-rw-r--r--drivers/hid/hid-sunplus.c4
-rw-r--r--drivers/hid/hid-tmff.c10
-rw-r--r--drivers/hid/hid-topseed.c4
-rw-r--r--drivers/hid/hid-twinhan.c147
-rw-r--r--drivers/hid/hid-wacom.c4
-rw-r--r--drivers/hid/hid-zpff.c4
-rw-r--r--drivers/hid/usbhid/hid-core.c12
-rw-r--r--drivers/hid/usbhid/hid-quirks.c2
-rw-r--r--drivers/hid/usbhid/hiddev.c2
-rw-r--r--include/linux/hid-debug.h48
-rw-r--r--include/linux/hid.h22
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
34config 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
49config HIDRAW 34config 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
140config 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
155config HID_KENSINGTON 147config 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
321config HID_WACOM 314config 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#
4hid-objs := hid-core.o hid-input.o 4hid-objs := hid-core.o hid-input.o
5 5
6ifdef CONFIG_DEBUG_FS
7 hid-objs += hid-debug.o
8endif
9
6obj-$(CONFIG_HID) += hid.o 10obj-$(CONFIG_HID) += hid.o
7 11
8hid-$(CONFIG_HID_DEBUG) += hid-debug.o
9hid-$(CONFIG_HIDRAW) += hidraw.o 12hid-$(CONFIG_HIDRAW) += hidraw.o
10 13
11hid-logitech-objs := hid-lg.o 14hid-logitech-objs := hid-lg.o
@@ -40,6 +43,7 @@ obj-$(CONFIG_HID_SUNPLUS) += hid-sunplus.o
40obj-$(CONFIG_HID_GREENASIA) += hid-gaff.o 43obj-$(CONFIG_HID_GREENASIA) += hid-gaff.o
41obj-$(CONFIG_HID_THRUSTMASTER) += hid-tmff.o 44obj-$(CONFIG_HID_THRUSTMASTER) += hid-tmff.o
42obj-$(CONFIG_HID_TOPSEED) += hid-topseed.o 45obj-$(CONFIG_HID_TOPSEED) += hid-topseed.o
46obj-$(CONFIG_HID_TWINHAN) += hid-twinhan.o
43obj-$(CONFIG_HID_ZEROPLUS) += hid-zpff.o 47obj-$(CONFIG_HID_ZEROPLUS) += hid-zpff.o
44obj-$(CONFIG_HID_WACOM) += hid-wacom.o 48obj-$(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
148static int a4_init(void) 148static 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
153static void a4_exit(void) 153static 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
454static int apple_init(void) 454static 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
465static void apple_exit(void) 465static void __exit apple_exit(void)