diff options
-rw-r--r-- | drivers/i2c/busses/i2c-tiny-usb.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/i2c/busses/i2c-tiny-usb.c b/drivers/i2c/busses/i2c-tiny-usb.c index 41adb390e49c..b5b1bbf37d3c 100644 --- a/drivers/i2c/busses/i2c-tiny-usb.c +++ b/drivers/i2c/busses/i2c-tiny-usb.c | |||
@@ -31,11 +31,13 @@ | |||
31 | #define CMD_I2C_IO_BEGIN (1<<0) | 31 | #define CMD_I2C_IO_BEGIN (1<<0) |
32 | #define CMD_I2C_IO_END (1<<1) | 32 | #define CMD_I2C_IO_END (1<<1) |
33 | 33 | ||
34 | /* i2c bit delay, default is 10us -> 100kHz */ | 34 | /* i2c bit delay, default is 10us -> 100kHz max |
35 | (in practice, due to additional delays in the i2c bitbanging | ||
36 | code this results in a i2c clock of about 50kHz) */ | ||
35 | static unsigned short delay = 10; | 37 | static unsigned short delay = 10; |
36 | module_param(delay, ushort, 0); | 38 | module_param(delay, ushort, 0); |
37 | MODULE_PARM_DESC(delay, "bit delay in microseconds, " | 39 | MODULE_PARM_DESC(delay, "bit delay in microseconds " |
38 | "e.g. 10 for 100kHz (default is 100kHz)"); | 40 | "(default is 10us for 100kHz max)"); |
39 | 41 | ||
40 | static int usb_read(struct i2c_adapter *adapter, int cmd, | 42 | static int usb_read(struct i2c_adapter *adapter, int cmd, |
41 | int value, int index, void *data, int len); | 43 | int value, int index, void *data, int len); |