提交 51e9dd32 编写于 作者: O Olimpiu Pascariu 提交者: Mauro Carvalho Chehab

V4L/DVB: cx25821: fix coding style issues in cx25821-i2c.c

Fixes up warnings and errors found by the checkpatch.pl tool
on cx25821-i2c.c
Signed-off-by: NOlimpiu Pascariu <olimpiu.pascariu@gmail.com>
Cc: Palash Bandyopadhyay <palash.bandyopadhyay@conexant.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 0dd8be8c
......@@ -159,9 +159,9 @@ static int i2c_sendbytes(struct i2c_adapter *i2c_adap,
return msg->len;
eio:
eio:
retval = -EIO;
err:
err:
if (i2c_debug)
printk(KERN_ERR " ERR: %d\n", retval);
return retval;
......@@ -223,9 +223,9 @@ static int i2c_readbytes(struct i2c_adapter *i2c_adap,
}
return msg->len;
eio:
eio:
retval = -EIO;
err:
err:
if (i2c_debug)
printk(KERN_ERR " ERR: %d\n", retval);
return retval;
......@@ -266,7 +266,7 @@ static int i2c_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg *msgs, int num)
}
return num;
err:
err:
return retval;
}
......@@ -319,7 +319,7 @@ int cx25821_i2c_register(struct cx25821_i2c *bus)
bus->i2c_client.adapter = &bus->i2c_adap;
//set up the I2c
/* set up the I2c */
bus->i2c_client.addr = (0x88 >> 1);
return bus->i2c_rc;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册