HID: i2c-hid: support sending HID output reports using the output register
authorAndrew Duggan <aduggan@synaptics.com>
Mon, 17 Jun 2013 23:15:06 +0000 (16:15 -0700)
committerJiri Kosina <jkosina@suse.cz>
Thu, 4 Jul 2013 13:00:11 +0000 (15:00 +0200)
commit811adb9622de310efbb661531c3ec0ae5d2b2bc0
treecec9cf37020101df3f4342cb204afb7abd27bea1
parent26e04462c8b78d079d3231396ec72d58a14f114b
HID: i2c-hid: support sending HID output reports using the output register

The current i2c hid driver does not support sending HID output reports using
the output register for devices which support receiving reports through this
method. This patch determines which method to use to send output reports based
 on the value of wMaxOutputLength in the device's HID descriptor.

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