HID: cp2112: remove various hid_out_raw_report calls
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Sun, 9 Mar 2014 03:52:40 +0000 (22:52 -0500)
committerJiri Kosina <jkosina@suse.cz>
Fri, 14 Mar 2014 14:29:53 +0000 (15:29 +0100)
commit293e483defe499f3c33dfd6e022bf5d0b01ff27f
tree3b5040c9ef33a32554b0df94879e18bfc98820b7
parentc16527cdccaa5dbbda38c7886f9ac65129302e88
HID: cp2112: remove various hid_out_raw_report calls

hid_out_raw_report is going to be obsoleted as it is not part of the
unified HID low level transport documentation
(Documentation/hid/hid-transport.txt)

  hid_output_raw_report(hdev, buf, sizeof(buf), HID_FEATURE_REPORT);
is strictly equivalent to:
  hid_hw_raw_request(hdev, buf[0], buf, sizeof(buf),
HID_FEATURE_REPORT, HID_REQ_SET_REPORT);

Then replace buf[0] by the appropriate define.

So use the new api.

Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-cp2112.c