Skip to content

Commit 866e479

Browse files
bentissJiri Kosina
authored andcommitted
HID: cp2112: remove the last hid_output_raw_report() call
tests have shown that output reports use hid_hw_output_report(). 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>
1 parent 293e483 commit 866e479

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎drivers/hid/hid-cp2112.c‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,12 @@ static int cp2112_hid_output(struct hid_device *hdev, u8 *data, size_t count,
290290
if (!buf)
291291
return -ENOMEM;
292292

293-
ret = hdev->hid_output_raw_report(hdev, buf, count, report_type);
293+
if (report_type == HID_OUTPUT_REPORT)
294+
ret = hid_hw_output_report(hdev, buf, count);
295+
else
296+
ret = hid_hw_raw_request(hdev, buf[0], buf, count, report_type,
297+
HID_REQ_SET_REPORT);
298+
294299
kfree(buf);
295300
return ret;
296301
}

0 commit comments

Comments
 (0)