]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: i2c-diolan-u2c: different usb endpoints for DLN-2-U2C
authorMartin Vogt <mvogt1@gmail.com>
Sun, 24 Nov 2013 14:57:23 +0000 (15:57 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 26 Nov 2013 12:49:33 +0000 (13:49 +0100)
commit72a8f8cc938967f6cb6c90aebfed817601293214
tree603dc7b63ca9f6295b0e90003e4d629b2f9a3d14
parent8434f103acb5546fa11573e8dd2c603e95daf2e7
i2c: i2c-diolan-u2c: different usb endpoints for DLN-2-U2C

The previous diolan adapter uses other out/in endpoints than
the current DLN-2-U2C in compatibility mode.
They changed from 0x2/0x84 to 0x3/0x83.
This patch gets the endpoints from the usb interface, instead
of hardcode them in the driver.

This was tested on a current DLN-2-U2C board.

Signed-off-by: Martin Vogt <mvogt1@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-diolan-u2c.c