]> Pileus Git - ~andy/linux/commit
HID: use hid_hw_wait() instead of direct call to usbhid
authorBenjamin Tissoires <benjamin.tissoires@gmail.com>
Mon, 25 Feb 2013 10:31:47 +0000 (11:31 +0100)
committerJiri Kosina <jkosina@suse.cz>
Mon, 25 Feb 2013 12:26:41 +0000 (13:26 +0100)
commitb7966a4d7be0a10329f03330390f4bdaf453d74a
tree73e1456d2199e16edf22af60929507ae25cff281
parentd881427253da011495f4193663d809d0e9dfa215
HID: use hid_hw_wait() instead of direct call to usbhid

This removes most of the dependencies between hid drivers and usbhid.

The patch was constructed by replacing all occurences of
usbhid_wait_io() by its hid_hw_wait() counterpart.
Then, drivers not requiring USB_HID anymore have their USB_HID
dependency cleaned in the Kconfig file.

As of today, few drivers are still requiring an explicit USB layer
dependency:
* ntrig (a patch is on its way)
* multitouch (one patch following and another on its way)
* lenovo tpkbd
* roccat
* sony

The last three are two deeply using direct calls to the usb subsystem
to be able to be cleaned right now.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/Kconfig
drivers/hid/hid-ntrig.c
drivers/hid/hid-picolcd_fb.c
drivers/hid/hid-sensor-hub.c
drivers/hid/usbhid/hid-core.c
drivers/hid/usbhid/hid-pidff.c
drivers/hid/usbhid/hiddev.c
drivers/hid/usbhid/usbhid.h