Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 179394
b: refs/heads/master
c: 22f8b26
h: refs/heads/master
v: v3
  • Loading branch information
Wolfram Sang authored and Jean Delvare committed Jan 16, 2010
1 parent 2ec59b3 commit 680dd91
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 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: 7d53e79f9ec2842269754efbe34f53aa480d99e3
refs/heads/master: 22f8b2695eda496026623020811cae34590ee3d7
4 changes: 2 additions & 2 deletions trunk/drivers/i2c/busses/i2c-pca-isa.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ static int pca_isa_waitforcompletion(void *pd)
unsigned long timeout;

if (irq > -1) {
ret = wait_event_interruptible_timeout(pca_wait,
ret = wait_event_timeout(pca_wait,
pca_isa_readbyte(pd, I2C_PCA_CON)
& I2C_PCA_CON_SI, pca_isa_ops.timeout);
} else {
Expand All @@ -96,7 +96,7 @@ static void pca_isa_resetchip(void *pd)
}

static irqreturn_t pca_handler(int this_irq, void *dev_id) {
wake_up_interruptible(&pca_wait);
wake_up(&pca_wait);
return IRQ_HANDLED;
}

Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/i2c/busses/i2c-pca-platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ static int i2c_pca_pf_waitforcompletion(void *pd)
unsigned long timeout;

if (i2c->irq) {
ret = wait_event_interruptible_timeout(i2c->wait,
ret = wait_event_timeout(i2c->wait,
i2c->algo_data.read_byte(i2c, I2C_PCA_CON)
& I2C_PCA_CON_SI, i2c->adap.timeout);
} else {
Expand Down Expand Up @@ -122,7 +122,7 @@ static irqreturn_t i2c_pca_pf_handler(int this_irq, void *dev_id)
if ((i2c->algo_data.read_byte(i2c, I2C_PCA_CON) & I2C_PCA_CON_SI) == 0)
return IRQ_NONE;

wake_up_interruptible(&i2c->wait);
wake_up(&i2c->wait);

return IRQ_HANDLED;
}
Expand Down

0 comments on commit 680dd91

Please sign in to comment.