aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/i2c/busses/i2c-wmt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-wmt.c b/drivers/i2c/busses/i2c-wmt.c
index 82ea34925489..26e49e6b4446 100644
--- a/drivers/i2c/busses/i2c-wmt.c
+++ b/drivers/i2c/busses/i2c-wmt.c
@@ -177,7 +177,7 @@ static int wmt_i2c_write(struct i2c_adapter *adap, struct i2c_msg *pmsg,
177 177
178 while (xfer_len < pmsg->len) { 178 while (xfer_len < pmsg->len) {
179 wait_result = wait_for_completion_timeout(&i2c_dev->complete, 179 wait_result = wait_for_completion_timeout(&i2c_dev->complete,
180 500 * HZ / 1000); 180 msecs_to_jiffies(500));
181 181
182 if (wait_result == 0) 182 if (wait_result == 0)
183 return -ETIMEDOUT; 183 return -ETIMEDOUT;
@@ -266,7 +266,7 @@ static int wmt_i2c_read(struct i2c_adapter *adap, struct i2c_msg *pmsg,
266 266
267 while (xfer_len < pmsg->len) { 267 while (xfer_len < pmsg->len) {
268 wait_result = wait_for_completion_timeout(&i2c_dev->complete, 268 wait_result = wait_for_completion_timeout(&i2c_dev->complete,
269 500 * HZ / 1000); 269 msecs_to_jiffies(500));
270 270
271 if (!wait_result) 271 if (!wait_result)
272 return -ETIMEDOUT; 272 return -ETIMEDOUT;