diff options
author | Isaac Assegai <isaac.a.travers@gmail.com> | 2015-06-18 21:48:53 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-06-18 22:10:02 -0700 |
commit | 6d43b0f482561ab421a91ebf59a51192d66cf8a7 (patch) | |
tree | ce5634a1748216b75792e80f4398a51a41877e15 /drivers/staging | |
parent | 7ef803a92db8a74c12a0d3c654a041eed42fa078 (diff) | |
download | linux-6d43b0f482561ab421a91ebf59a51192d66cf8a7.tar.gz linux-6d43b0f482561ab421a91ebf59a51192d66cf8a7.tar.bz2 linux-6d43b0f482561ab421a91ebf59a51192d66cf8a7.zip |
Staging: sm750fb: ddk750_swi2c.c: Insert spaces around operators
Insert spaces around comparison operators in ddk750_swi2c.c
to rectify the following set of checkpatch errors:
ERROR: spaces required around that '='
ERROR: spaces required around that '<'
ERROR: spaces required around that '>='
Signed-off-by: Isaac Assegai <isaac.a.travers@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/sm750fb/ddk750_swi2c.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/staging/sm750fb/ddk750_swi2c.c b/drivers/staging/sm750fb/ddk750_swi2c.c index e2c30dfcef79..a5878353b4dc 100644 --- a/drivers/staging/sm750fb/ddk750_swi2c.c +++ b/drivers/staging/sm750fb/ddk750_swi2c.c @@ -100,7 +100,7 @@ static void swI2CWait(void) #else int i, Temp; - for(i=0; i<600; i++) + for(i = 0; i < 600; i++) { Temp = i; Temp += i; @@ -255,7 +255,7 @@ static long swI2CWriteByte(unsigned char data) int i; /* Sending the data bit by bit */ - for (i=0; i<8; i++) + for (i = 0; i < 8; i++) { /* Set SCL to low */ swI2CSCL(0); @@ -286,7 +286,7 @@ static long swI2CWriteByte(unsigned char data) swI2CWait(); /* Read SDA, until SDA==0 */ - for(i=0; i<0xff; i++) + for(i = 0; i < 0xff; i++) { if (!swI2CReadSDA()) break; @@ -301,7 +301,7 @@ static long swI2CWriteByte(unsigned char data) swI2CSCL(0); swI2CSDA(1); - if (i<0xff) + if (i < 0xff) return 0; else return -1; @@ -322,7 +322,7 @@ static unsigned char swI2CReadByte(unsigned char ack) int i; 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) */ swI2CSCL(0); @@ -380,7 +380,7 @@ static long swI2CInit_SM750LE(unsigned char i2cClkGPIO, /* Note that SM750LE don't have GPIO MUX and power is always on */ /* Clear the i2c lines. */ - for(i=0; i<9; i++) + for(i = 0; i < 9; i++) swI2CStop(); return 0; @@ -437,7 +437,7 @@ long swI2CInit( enableGPIO(1); /* Clear the i2c lines. */ - for(i=0; i<9; i++) + for(i = 0; i < 9; i++) swI2CStop(); return 0; |