HID: cp2112: add I2C mode
authorAntonio Borneo <borneo.antonio@gmail.com>
Mon, 7 Jul 2014 23:25:39 +0000 (07:25 +0800)
committerJiri Kosina <jkosina@suse.cz>
Tue, 29 Jul 2014 09:37:38 +0000 (11:37 +0200)
commitb9029345ed6483fcadadc4834b44a5656dd56d70
tree1ad9c2ef159cf7bd9f5096c9c3124632dbeff087
parentbeb9d007a846e661cfaa7719cab6b004b3380418
HID: cp2112: add I2C mode

cp2112 supports single I2C read/write transactions.  It can't combine I2C
transactions.

Add master_xfer, using similar code flow as for smbus_xfer.

Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-cp2112.c