|
@@ -177,7 +177,7 @@ static int wmt_i2c_write(struct i2c_adapter *adap, struct i2c_msg *pmsg,
|
|
|
|
|
|
while (xfer_len < pmsg->len) {
|
|
while (xfer_len < pmsg->len) {
|
|
wait_result = wait_for_completion_timeout(&i2c_dev->complete,
|
|
wait_result = wait_for_completion_timeout(&i2c_dev->complete,
|
|
- 500 * HZ / 1000);
|
|
|
|
|
|
+ msecs_to_jiffies(500));
|
|
|
|
|
|
if (wait_result == 0)
|
|
if (wait_result == 0)
|
|
return -ETIMEDOUT;
|
|
return -ETIMEDOUT;
|
|
@@ -266,7 +266,7 @@ static int wmt_i2c_read(struct i2c_adapter *adap, struct i2c_msg *pmsg,
|
|
|
|
|
|
while (xfer_len < pmsg->len) {
|
|
while (xfer_len < pmsg->len) {
|
|
wait_result = wait_for_completion_timeout(&i2c_dev->complete,
|
|
wait_result = wait_for_completion_timeout(&i2c_dev->complete,
|
|
- 500 * HZ / 1000);
|
|
|
|
|
|
+ msecs_to_jiffies(500));
|
|
|
|
|
|
if (!wait_result)
|
|
if (!wait_result)
|
|
return -ETIMEDOUT;
|
|
return -ETIMEDOUT;
|