HID: i2c-hid: implement ll_driver transport-layer callbacks
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Mon, 10 Feb 2014 17:58:49 +0000 (12:58 -0500)
committerJiri Kosina <jkosina@suse.cz>
Mon, 17 Feb 2014 13:53:09 +0000 (14:53 +0100)
commit9b5a9ae88573884224a26fda0e3eb6a6ec48686d
tree073210d6f79259918a9fd76ff8fe91c2d2ddd3d4
parent4fa5a7f76cc7b6ac87f57741edd2b124851d119f
HID: i2c-hid: implement ll_driver transport-layer callbacks

Add output_report and raw_request to i2c-hid.
The current implementation of i2c_hid_output_raw_report decides
by itself if it should use a direct send of the output report
or use the data register (SET_REPORT). Split that by reimplement
the logic in __i2c_hid_output_raw_report() which will be dropped
soon.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/i2c-hid/i2c-hid.c