aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/au0828/au0828-i2c.c
diff options
context:
space:
mode:
authorDevin Heitmueller <dheitmueller@linuxtv.org>2009-03-15 17:48:52 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 11:43:27 -0400
commit62899a28008d635f25c3408b4cc46021f0cb34d3 (patch)
treec5c92a3617aecbfb2cfe4d964b2a8bda37652d46 /drivers/media/video/au0828/au0828-i2c.c
parent3d62287e2c6c5b3351e04dd2c2209b2536995fdb (diff)
V4L/DVB (11085): au0828/au8522: Codingstyle fixes
Take a pass over all of the au0828/au8522 files and cleanup all the codingstyle issues. This patch does not make *any* functional change to the code. Signed-off-by: Devin Heitmueller <dheitmueller@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/au0828/au0828-i2c.c')
-rw-r--r--drivers/media/video/au0828/au0828-i2c.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/media/video/au0828/au0828-i2c.c b/drivers/media/video/au0828/au0828-i2c.c
index e841ba5a6424..1b110f37b895 100644
--- a/drivers/media/video/au0828/au0828-i2c.c
+++ b/drivers/media/video/au0828/au0828-i2c.c
@@ -145,11 +145,10 @@ static int i2c_sendbytes(struct i2c_adapter *i2c_adap,
145 requires us to slow down the i2c clock until we have a better 145 requires us to slow down the i2c clock until we have a better
146 strategy (such as using the secondary i2c bus to do firmware 146 strategy (such as using the secondary i2c bus to do firmware
147 loading */ 147 loading */
148 if ((msg->addr << 1) == 0xc2) { 148 if ((msg->addr << 1) == 0xc2)
149 au0828_write(dev, REG_202, 0x40); 149 au0828_write(dev, REG_202, 0x40);
150 } else { 150 else
151 au0828_write(dev, REG_202, 0x07); 151 au0828_write(dev, REG_202, 0x07);
152 }
153 152
154 /* Hardware needs 8 bit addresses */ 153 /* Hardware needs 8 bit addresses */
155 au0828_write(dev, REG_203, msg->addr << 1); 154 au0828_write(dev, REG_203, msg->addr << 1);
@@ -223,11 +222,10 @@ static int i2c_readbytes(struct i2c_adapter *i2c_adap,
223 requires us to slow down the i2c clock until we have a better 222 requires us to slow down the i2c clock until we have a better
224 strategy (such as using the secondary i2c bus to do firmware 223 strategy (such as using the secondary i2c bus to do firmware
225 loading */ 224 loading */
226 if ((msg->addr << 1) == 0xc2) { 225 if ((msg->addr << 1) == 0xc2)
227 au0828_write(dev, REG_202, 0x40); 226 au0828_write(dev, REG_202, 0x40);
228 } else { 227 else
229 au0828_write(dev, REG_202, 0x07); 228 au0828_write(dev, REG_202, 0x07);
230 }
231 229
232 /* Hardware needs 8 bit addresses */ 230 /* Hardware needs 8 bit addresses */
233 au0828_write(dev, REG_203, msg->addr << 1); 231 au0828_write(dev, REG_203, msg->addr << 1);