summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/au0828/au0828-i2c.c
diff options
context:
space:
mode:
authorSteven Toth <stoth@hauppauge.com>2008-04-17 17:41:28 -0400
committerSteven Toth <stoth@hauppauge.com>2008-04-17 17:41:28 -0400
commit359d1d58bc15a93bcede273e981430f6a11aba11 (patch)
tree7832a4718621add10069864e44d65324e775fa92 /linux/drivers/media/video/au0828/au0828-i2c.c
parentc66482edaa7064dafbf88c1dd33e7516fa45edcd (diff)
downloadmediapointer-dvb-s2-359d1d58bc15a93bcede273e981430f6a11aba11.tar.gz
mediapointer-dvb-s2-359d1d58bc15a93bcede273e981430f6a11aba11.tar.bz2
au0828: Cleanup
From: Steven Toth <stoth@hauppauge.com> au0828: Cleanup Signed-off-by: Steven Toth <stoth@hauppauge.com>
Diffstat (limited to 'linux/drivers/media/video/au0828/au0828-i2c.c')
-rw-r--r--linux/drivers/media/video/au0828/au0828-i2c.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/linux/drivers/media/video/au0828/au0828-i2c.c b/linux/drivers/media/video/au0828/au0828-i2c.c
index 2d34ed05c..95e4e3b44 100644
--- a/linux/drivers/media/video/au0828/au0828-i2c.c
+++ b/linux/drivers/media/video/au0828/au0828-i2c.c
@@ -152,7 +152,7 @@ static int i2c_sendbytes(struct i2c_adapter *i2c_adap,
dprintk(4, "SEND: %02x\n", msg->addr);
- for (i=0; i < msg->len;) {
+ for (i = 0; i < msg->len;) {
dprintk(4, " %02x\n", msg->buf[i]);
@@ -174,10 +174,6 @@ static int i2c_sendbytes(struct i2c_adapter *i2c_adap,
if (!i2c_wait_write_done(i2c_adap))
return -EIO;
-#if 0
- if (!i2c_slave_did_write_ack(i2c_adap))
- return -EIO;
-#endif
}
@@ -215,7 +211,7 @@ static int i2c_readbytes(struct i2c_adapter *i2c_adap,
return 0;
}
- for (i=0; i < msg->len;) {
+ for (i = 0; i < msg->len;) {
i++;
@@ -246,7 +242,7 @@ static int i2c_xfer(struct i2c_adapter *i2c_adap,
dprintk(4, "%s(num = %d)\n", __func__, num);
- for (i = 0 ; i < num; i++) {
+ for (i = 0; i < num; i++) {
dprintk(4, "%s(num = %d) addr = 0x%02x len = 0x%x\n",
__func__, num, msgs[i].addr, msgs[i].len);
if (msgs[i].flags & I2C_M_RD) {