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>
#else
int i, Temp;
- for(i=0; i<600; i++)
+ for(i = 0; i < 600; i++)
{
Temp = i;
Temp += i;
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);
swI2CWait();
/* Read SDA, until SDA==0 */
- for(i=0; i<0xff; i++)
+ for(i = 0; i < 0xff; i++)
{
if (!swI2CReadSDA())
break;
swI2CSCL(0);
swI2CSDA(1);
- if (i<0xff)
+ if (i < 0xff)
return 0;
else
return -1;
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);
/* 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;
enableGPIO(1);
/* Clear the i2c lines. */
- for(i=0; i<9; i++)
+ for(i = 0; i < 9; i++)
swI2CStop();
return 0;