diff options
author | Benjamin Tissoires <benjamin.tissoires@gmail.com> | 2013-02-25 05:31:46 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2013-02-25 07:26:41 -0500 |
commit | d881427253da011495f4193663d809d0e9dfa215 (patch) | |
tree | fe4eb817ab712f7049b1d3ef675fec69d9207675 /drivers/hid/Kconfig | |
parent | f3757cea18fadce23c95a4c4bc3123af73a95e65 (diff) |
HID: use hid_hw_request() instead of direct call to usbhid
This allows the hid drivers to be independent from the transport layer.
The patch was constructed by replacing all occurences of
usbhid_submit_report() by its hid_hw_request() counterpart.
Then, drivers not requiring USB_HID anymore have their USB_HID
dependency cleaned in the Kconfig file.
Finally, few drivers still depends on USB_HID. Many of them
are requiring the io wait callback. They are found in the next patch.
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
For the sensor-hub part:
Tested-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/Kconfig')
-rw-r--r-- | drivers/hid/Kconfig | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig index 1b737b44c56e..f0acf2754b69 100644 --- a/drivers/hid/Kconfig +++ b/drivers/hid/Kconfig | |||
@@ -99,7 +99,7 @@ config HID_A4TECH | |||
99 | 99 | ||
100 | config HID_ACRUX | 100 | config HID_ACRUX |
101 | tristate "ACRUX game controller support" | 101 | tristate "ACRUX game controller support" |
102 | depends on USB_HID | 102 | depends on HID |
103 | ---help--- | 103 | ---help--- |
104 | Say Y here if you want to enable support for ACRUX game controllers. | 104 | Say Y here if you want to enable support for ACRUX game controllers. |
105 | 105 | ||
@@ -151,7 +151,7 @@ config HID_CHICONY | |||
151 | 151 | ||
152 | config HID_PRODIKEYS | 152 | config HID_PRODIKEYS |
153 | tristate "Prodikeys PC-MIDI Keyboard support" | 153 | tristate "Prodikeys PC-MIDI Keyboard support" |
154 | depends on USB_HID && SND | 154 | depends on HID && SND |
155 | select SND_RAWMIDI | 155 | select SND_RAWMIDI |
156 | ---help--- | 156 | ---help--- |
157 | Support for Prodikeys PC-MIDI Keyboard device support. | 157 | Support for Prodikeys PC-MIDI Keyboard device support. |
@@ -173,7 +173,7 @@ config HID_CYPRESS | |||
173 | 173 | ||
174 | config HID_DRAGONRISE | 174 | config HID_DRAGONRISE |
175 | tristate "DragonRise Inc. game controller" | 175 | tristate "DragonRise Inc. game controller" |
176 | depends on USB_HID | 176 | depends on HID |
177 | ---help--- | 177 | ---help--- |
178 | Say Y here if you have DragonRise Inc. game controllers. | 178 | Say Y here if you have DragonRise Inc. game controllers. |
179 | These might be branded as: | 179 | These might be branded as: |
@@ -192,7 +192,7 @@ config DRAGONRISE_FF | |||
192 | 192 | ||
193 | config HID_EMS_FF | 193 | config HID_EMS_FF |
194 | tristate "EMS Production Inc. force feedback support" | 194 | tristate "EMS Production Inc. force feedback support" |
195 | depends on USB_HID | 195 | depends on HID |
196 | select INPUT_FF_MEMLESS | 196 | select INPUT_FF_MEMLESS |
197 | ---help--- | 197 | ---help--- |
198 | Say Y here if you want to enable force feedback support for devices by | 198 | Say Y here if you want to enable force feedback support for devices by |
@@ -215,7 +215,7 @@ config HID_EZKEY | |||
215 | 215 | ||
216 | config HID_HOLTEK | 216 | config HID_HOLTEK |
217 | tristate "Holtek HID devices" | 217 | tristate "Holtek HID devices" |
218 | depends on USB_HID | 218 | depends on HID |
219 | ---help--- | 219 | ---help--- |
220 | Support for Holtek based devices: | 220 | Support for Holtek based devices: |
221 | - Holtek On Line Grip based game controller | 221 | - Holtek On Line Grip based game controller |
@@ -239,7 +239,7 @@ config HID_KEYTOUCH | |||
239 | 239 | ||
240 | config HID_KYE | 240 | config HID_KYE |
241 | tristate "KYE/Genius devices" | 241 | tristate "KYE/Genius devices" |
242 | depends on USB_HID | 242 | depends on HID |
243 | ---help--- | 243 | ---help--- |
244 | Support for KYE/Genius devices not fully compliant with HID standard: | 244 | Support for KYE/Genius devices not fully compliant with HID standard: |
245 | - Ergo Mouse | 245 | - Ergo Mouse |
@@ -397,7 +397,7 @@ config HID_MONTEREY | |||
397 | 397 | ||
398 | config HID_MULTITOUCH | 398 | config HID_MULTITOUCH |
399 | tristate "HID Multitouch panels" | 399 | tristate "HID Multitouch panels" |
400 | depends on USB_HID | 400 | depends on HID |
401 | ---help--- | 401 | ---help--- |
402 | Generic support for HID multitouch panels. | 402 | Generic support for HID multitouch panels. |
403 | 403 | ||
@@ -458,7 +458,7 @@ config HID_ORTEK | |||
458 | 458 | ||
459 | config HID_PANTHERLORD | 459 | config HID_PANTHERLORD |
460 | tristate "Pantherlord/GreenAsia game controller" | 460 | tristate "Pantherlord/GreenAsia game controller" |
461 | depends on USB_HID | 461 | depends on HID |
462 | ---help--- | 462 | ---help--- |
463 | Say Y here if you have a PantherLord/GreenAsia based game controller | 463 | Say Y here if you have a PantherLord/GreenAsia based game controller |
464 | or adapter. | 464 | or adapter. |
@@ -592,13 +592,13 @@ config HID_SONY | |||
592 | 592 | ||
593 | config HID_SPEEDLINK | 593 | config HID_SPEEDLINK |
594 | tristate "Speedlink VAD Cezanne mouse support" | 594 | tristate "Speedlink VAD Cezanne mouse support" |
595 | depends on USB_HID | 595 | depends on HID |
596 | ---help--- | 596 | ---help--- |
597 | Support for Speedlink Vicious and Divine Cezanne mouse. | 597 | Support for Speedlink Vicious and Divine Cezanne mouse. |
598 | 598 | ||
599 | config HID_STEELSERIES | 599 | config HID_STEELSERIES |
600 | tristate "Steelseries SRW-S1 steering wheel support" | 600 | tristate "Steelseries SRW-S1 steering wheel support" |
601 | depends on USB_HID | 601 | depends on HID |
602 | ---help--- | 602 | ---help--- |
603 | Support for Steelseries SRW-S1 steering wheel | 603 | Support for Steelseries SRW-S1 steering wheel |
604 | 604 | ||
@@ -610,7 +610,7 @@ config HID_SUNPLUS | |||
610 | 610 | ||
611 | config HID_GREENASIA | 611 | config HID_GREENASIA |
612 | tristate "GreenAsia (Product ID 0x12) game controller support" | 612 | tristate "GreenAsia (Product ID 0x12) game controller support" |
613 | depends on USB_HID | 613 | depends on HID |
614 | ---help--- | 614 | ---help--- |
615 | Say Y here if you have a GreenAsia (Product ID 0x12) based game | 615 | Say Y here if you have a GreenAsia (Product ID 0x12) based game |
616 | controller or adapter. | 616 | controller or adapter. |
@@ -632,7 +632,7 @@ config HID_HYPERV_MOUSE | |||
632 | 632 | ||
633 | config HID_SMARTJOYPLUS | 633 | config HID_SMARTJOYPLUS |
634 | tristate "SmartJoy PLUS PS2/USB adapter support" | 634 | tristate "SmartJoy PLUS PS2/USB adapter support" |
635 | depends on USB_HID | 635 | depends on HID |
636 | ---help--- | 636 | ---help--- |
637 | Support for SmartJoy PLUS PS2/USB adapter, Super Dual Box, | 637 | Support for SmartJoy PLUS PS2/USB adapter, Super Dual Box, |
638 | Super Joy Box 3 Pro, Super Dual Box Pro, and Super Joy Box 5 Pro. | 638 | Super Joy Box 3 Pro, Super Dual Box Pro, and Super Joy Box 5 Pro. |
@@ -673,7 +673,7 @@ config HID_THINGM | |||
673 | 673 | ||
674 | config HID_THRUSTMASTER | 674 | config HID_THRUSTMASTER |
675 | tristate "ThrustMaster devices support" | 675 | tristate "ThrustMaster devices support" |
676 | depends on USB_HID | 676 | depends on HID |
677 | ---help--- | 677 | ---help--- |
678 | Say Y here if you have a THRUSTMASTER FireStore Dual Power 2 or | 678 | Say Y here if you have a THRUSTMASTER FireStore Dual Power 2 or |
679 | a THRUSTMASTER Ferrari GT Rumble Wheel. | 679 | a THRUSTMASTER Ferrari GT Rumble Wheel. |
@@ -715,7 +715,7 @@ config HID_WIIMOTE_EXT | |||
715 | 715 | ||
716 | config HID_ZEROPLUS | 716 | config HID_ZEROPLUS |
717 | tristate "Zeroplus based game controller support" | 717 | tristate "Zeroplus based game controller support" |
718 | depends on USB_HID | 718 | depends on HID |
719 | ---help--- | 719 | ---help--- |
720 | Say Y here if you have a Zeroplus based game controller. | 720 | Say Y here if you have a Zeroplus based game controller. |
721 | 721 | ||
@@ -735,7 +735,7 @@ config HID_ZYDACRON | |||
735 | 735 | ||
736 | config HID_SENSOR_HUB | 736 | config HID_SENSOR_HUB |
737 | tristate "HID Sensors framework support" | 737 | tristate "HID Sensors framework support" |
738 | depends on USB_HID && GENERIC_HARDIRQS | 738 | depends on HID && GENERIC_HARDIRQS |
739 | select MFD_CORE | 739 | select MFD_CORE |
740 | default n | 740 | default n |
741 | -- help--- | 741 | -- help--- |