aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-multitouch.c
diff options
context:
space:
mode:
authorBenjamin Tissoires <benjamin.tissoires@gmail.com>2013-02-25 05:31:46 -0500
committerJiri Kosina <jkosina@suse.cz>2013-02-25 07:26:41 -0500
commitd881427253da011495f4193663d809d0e9dfa215 (patch)
treefe4eb817ab712f7049b1d3ef675fec69d9207675 /drivers/hid/hid-multitouch.c
parentf3757cea18fadce23c95a4c4bc3123af73a95e65 (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/hid-multitouch.c')
-rw-r--r--drivers/hid/hid-multitouch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c
index 7a1ebb867cf4..32258ba60056 100644
--- a/drivers/hid/hid-multitouch.c
+++ b/drivers/hid/hid-multitouch.c
@@ -736,7 +736,7 @@ static void mt_set_input_mode(struct hid_device *hdev)
736 r = re->report_id_hash[td->inputmode]; 736 r = re->report_id_hash[td->inputmode];
737 if (r) { 737 if (r) {
738 r->field[0]->value[td->inputmode_index] = 0x02; 738 r->field[0]->value[td->inputmode_index] = 0x02;
739 usbhid_submit_report(hdev, r, USB_DIR_OUT); 739 hid_hw_request(hdev, r, HID_REQ_SET_REPORT);
740 } 740 }
741} 741}
742 742
@@ -761,7 +761,7 @@ static void mt_set_maxcontacts(struct hid_device *hdev)
761 max = min(fieldmax, max); 761 max = min(fieldmax, max);
762 if (r->field[0]->value[0] != max) { 762 if (r->field[0]->value[0] != max) {
763 r->field[0]->value[0] = max; 763 r->field[0]->value[0] = max;
764 usbhid_submit_report(hdev, r, USB_DIR_OUT); 764 hid_hw_request(hdev, r, HID_REQ_SET_REPORT);
765 } 765 }
766 } 766 }
767} 767}