i2c-davinci: Fix timeout handling
authorJean Delvare <khali@linux-fr.org>
Sat, 28 Mar 2009 20:34:43 +0000 (21:34 +0100)
committerJean Delvare <khali@linux-fr.org>
Sat, 28 Mar 2009 20:34:43 +0000 (21:34 +0100)
commit98a679cad56c0ba4677821836179abbe0aff8769
tree49fc4c32e0bf62687ec6906552041523c2b70c46
parent8a52c6b4d55b2960d93a90a7cf6afd252357fa54
i2c-davinci: Fix timeout handling

Properly set the adapter timeout value in jiffies, and then use that
value in the driver, rather than a hard-coded constant.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Tested-by: Troy Kisky <troy.kisky@boundarydevices.com>
Cc: Kevin Hilman <khilman@mvista.com>
drivers/i2c/busses/i2c-davinci.c