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)
commit4e4844ccb13571cc58b25e2734f17e98a29256a5
tree603dc7b63ca9f6295b0e90003e4d629b2f9a3d14
parent55b3918b44c093948ccfcf89163d1d3e39c2f3f4
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