i2c-ali1563: Remove sparse warnings
Remove the following sparse warnings (see "make C=1"): * drivers/i2c/busses/i2c-ali1563.c:91:3: warning: do-while statement is not a compound statement * drivers/i2c/busses/i2c-ali1563.c:161:3: warning: do-while statement is not a compound statement Signed-off-by: Márton Németh <nm127@freemail.hu> Signed-off-by: Jean Delvare <khali@linux-fr.org>
This commit is contained in:
parent
b6a3195070
commit
7d53e79f9e
|
@ -87,9 +87,9 @@ static int ali1563_transaction(struct i2c_adapter * a, int size)
|
||||||
outb_p(inb_p(SMB_HST_CNTL2) | HST_CNTL2_START, SMB_HST_CNTL2);
|
outb_p(inb_p(SMB_HST_CNTL2) | HST_CNTL2_START, SMB_HST_CNTL2);
|
||||||
|
|
||||||
timeout = ALI1563_MAX_TIMEOUT;
|
timeout = ALI1563_MAX_TIMEOUT;
|
||||||
do
|
do {
|
||||||
msleep(1);
|
msleep(1);
|
||||||
while (((data = inb_p(SMB_HST_STS)) & HST_STS_BUSY) && --timeout);
|
} while (((data = inb_p(SMB_HST_STS)) & HST_STS_BUSY) && --timeout);
|
||||||
|
|
||||||
dev_dbg(&a->dev, "Transaction (post): STS=%02x, CNTL1=%02x, "
|
dev_dbg(&a->dev, "Transaction (post): STS=%02x, CNTL1=%02x, "
|
||||||
"CNTL2=%02x, CMD=%02x, ADD=%02x, DAT0=%02x, DAT1=%02x\n",
|
"CNTL2=%02x, CMD=%02x, ADD=%02x, DAT0=%02x, DAT1=%02x\n",
|
||||||
|
@ -157,9 +157,9 @@ static int ali1563_block_start(struct i2c_adapter * a)
|
||||||
outb_p(inb_p(SMB_HST_CNTL2) | HST_CNTL2_START, SMB_HST_CNTL2);
|
outb_p(inb_p(SMB_HST_CNTL2) | HST_CNTL2_START, SMB_HST_CNTL2);
|
||||||
|
|
||||||
timeout = ALI1563_MAX_TIMEOUT;
|
timeout = ALI1563_MAX_TIMEOUT;
|
||||||
do
|
do {
|
||||||
msleep(1);
|
msleep(1);
|
||||||
while (!((data = inb_p(SMB_HST_STS)) & HST_STS_DONE) && --timeout);
|
} while (!((data = inb_p(SMB_HST_STS)) & HST_STS_DONE) && --timeout);
|
||||||
|
|
||||||
dev_dbg(&a->dev, "Block (post): STS=%02x, CNTL1=%02x, "
|
dev_dbg(&a->dev, "Block (post): STS=%02x, CNTL1=%02x, "
|
||||||
"CNTL2=%02x, CMD=%02x, ADD=%02x, DAT0=%02x, DAT1=%02x\n",
|
"CNTL2=%02x, CMD=%02x, ADD=%02x, DAT0=%02x, DAT1=%02x\n",
|
||||||
|
|
Loading…
Reference in New Issue