浏览代码

Staging: sm750fb: ddk750_swi2c.c: Insert spaces before parenthesis

Insert spaces before open parenthesis in ddk750_swi2c.c
to rectify the following checkpatch errors:
ERROR: space required before the open parenthesis '('

Signed-off-by: Isaac Assegai <isaac.a.travers@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Isaac Assegai 10 年之前
父节点
当前提交
6bdee8bddd
共有 1 个文件被更改,包括 6 次插入6 次删除
  1. 6 6
      drivers/staging/sm750fb/ddk750_swi2c.c

+ 6 - 6
drivers/staging/sm750fb/ddk750_swi2c.c

@@ -96,11 +96,11 @@ static void swI2CWait(void)
        it's more reliable than counter loop ..
        it's more reliable than counter loop ..
        write 0x61 to 0x3ce and read from 0x3cf
        write 0x61 to 0x3ce and read from 0x3cf
        */
        */
-	while(peekIO(0x3ce, 0x61) & 0x10);
+	while (peekIO(0x3ce, 0x61) & 0x10);
 #else
 #else
 	int i, Temp;
 	int i, Temp;
 
 
-	for(i = 0; i < 600; i++) {
+	for (i = 0; i < 600; i++) {
 		Temp = i;
 		Temp = i;
 		Temp += i;
 		Temp += i;
 	}
 	}
@@ -277,7 +277,7 @@ static long swI2CWriteByte(unsigned char data)
 	swI2CWait();
 	swI2CWait();
 
 
 	/* Read SDA, until SDA==0 */
 	/* Read SDA, until SDA==0 */
-	for(i = 0; i < 0xff; i++) {
+	for (i = 0; i < 0xff; i++) {
 		if (!swI2CReadSDA())
 		if (!swI2CReadSDA())
 			break;
 			break;
 
 
@@ -312,7 +312,7 @@ static unsigned char swI2CReadByte(unsigned char ack)
 	int i;
 	int i;
 	unsigned char data = 0;
 	unsigned char data = 0;
 
 
-	for(i = 7; i >= 0; i--) {
+	for (i = 7; i >= 0; i--) {
 		/* Set the SCL to Low and SDA to High (Input) */
 		/* Set the SCL to Low and SDA to High (Input) */
 		swI2CSCL(0);
 		swI2CSCL(0);
 		swI2CSDA(1);
 		swI2CSDA(1);
@@ -369,7 +369,7 @@ static long swI2CInit_SM750LE(unsigned char i2cClkGPIO,
 	/* Note that SM750LE don't have GPIO MUX and power is always on */
 	/* Note that SM750LE don't have GPIO MUX and power is always on */
 
 
 	/* Clear the i2c lines. */
 	/* Clear the i2c lines. */
-	for(i = 0; i < 9; i++)
+	for (i = 0; i < 9; i++)
 		swI2CStop();
 		swI2CStop();
 
 
 	return 0;
 	return 0;
@@ -426,7 +426,7 @@ long swI2CInit(
 	enableGPIO(1);
 	enableGPIO(1);
 
 
 	/* Clear the i2c lines. */
 	/* Clear the i2c lines. */
-	for(i = 0; i < 9; i++)
+	for (i = 0; i < 9; i++)
 		swI2CStop();
 		swI2CStop();
 
 
 	return 0;
 	return 0;