Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 183054
b: refs/heads/master
c: eed18b5
h: refs/heads/master
v: v3
  • Loading branch information
Russell King committed Feb 12, 2010
1 parent cd67f9a commit aedd831
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7e20c837208f6fdd553d04f5fe3e80f44570698b
refs/heads/master: eed18b5fa4d297c681b00144e8c6942dd35d39a7
4 changes: 2 additions & 2 deletions trunk/drivers/i2c/busses/i2c-pnx.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ static inline int wait_reset(long timeout, struct i2c_pnx_algo_data *data)
static inline void i2c_pnx_arm_timer(struct i2c_pnx_algo_data *alg_data)
{
struct timer_list *timer = &alg_data->mif.timer;
int expires = I2C_PNX_TIMEOUT / (1000 / HZ);
unsigned long expires = msecs_to_jiffies(I2C_PNX_TIMEOUT);

if (expires <= 1)
expires = 2;

del_timer_sync(timer);

dev_dbg(&alg_data->adapter.dev, "Timer armed at %lu plus %u jiffies.\n",
dev_dbg(&alg_data->adapter.dev, "Timer armed at %lu plus %lu jiffies.\n",
jiffies, expires);

timer->expires = jiffies + expires;
Expand Down

0 comments on commit aedd831

Please sign in to comment.