]> 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)
commit498593fb6399235db1bef9d05e27c987750cc970
tree603dc7b63ca9f6295b0e90003e4d629b2f9a3d14
parent05dc71316a98c4b2489856b283927c8d2d26d7b0
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