aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c/busses/i2c-pca-isa.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/i2c/busses/i2c-pca-isa.c')
-rw-r--r--drivers/i2c/busses/i2c-pca-isa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-pca-isa.c b/drivers/i2c/busses/i2c-pca-isa.c
index 496ee875eb4f..93ed3251893d 100644
--- a/drivers/i2c/busses/i2c-pca-isa.c
+++ b/drivers/i2c/busses/i2c-pca-isa.c
@@ -78,7 +78,7 @@ pca_isa_readbyte(struct i2c_algo_pca_data *adap, int reg)
78 int res = inb(base+reg); 78 int res = inb(base+reg);
79#ifdef DEBUG_IO 79#ifdef DEBUG_IO
80 { 80 {
81 static char *names[] = { "STA", "DAT", "ADR", "CON" }; 81 static char *names[] = { "STA", "DAT", "ADR", "CON" };
82 printk("*** read %s => %#04x\n", names[reg], res); 82 printk("*** read %s => %#04x\n", names[reg], res);
83 } 83 }
84#endif 84#endif
@@ -93,7 +93,7 @@ static int pca_isa_waitforinterrupt(struct i2c_algo_pca_data *adap)
93 ret = wait_event_interruptible(pca_wait, 93 ret = wait_event_interruptible(pca_wait,
94 pca_isa_readbyte(adap, I2C_PCA_CON) & I2C_PCA_CON_SI); 94 pca_isa_readbyte(adap, I2C_PCA_CON) & I2C_PCA_CON_SI);
95 } else { 95 } else {
96 while ((pca_isa_readbyte(adap, I2C_PCA_CON) & I2C_PCA_CON_SI) == 0) 96 while ((pca_isa_readbyte(adap, I2C_PCA_CON) & I2C_PCA_CON_SI) == 0)
97 udelay(100); 97 udelay(100);
98 } 98 }
99 return ret; 99 return ret;