summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/au0828/au0828-i2c.c
diff options
context:
space:
mode:
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, 4 insertions, 6 deletions
diff --git a/linux/drivers/media/video/au0828/au0828-i2c.c b/linux/drivers/media/video/au0828/au0828-i2c.c
index 9f3818723..3f99b4153 100644
--- a/linux/drivers/media/video/au0828/au0828-i2c.c
+++ b/linux/drivers/media/video/au0828/au0828-i2c.c
@@ -146,11 +146,10 @@ static int i2c_sendbytes(struct i2c_adapter *i2c_adap,
requires us to slow down the i2c clock until we have a better
strategy (such as using the secondary i2c bus to do firmware
loading */
- if ((msg->addr << 1) == 0xc2) {
+ if ((msg->addr << 1) == 0xc2)
au0828_write(dev, REG_202, 0x40);
- } else {
+ else
au0828_write(dev, REG_202, 0x07);
- }
/* Hardware needs 8 bit addresses */
au0828_write(dev, REG_203, msg->addr << 1);
@@ -224,11 +223,10 @@ static int i2c_readbytes(struct i2c_adapter *i2c_adap,
requires us to slow down the i2c clock until we have a better
strategy (such as using the secondary i2c bus to do firmware
loading */
- if ((msg->addr << 1) == 0xc2) {
+ if ((msg->addr << 1) == 0xc2)
au0828_write(dev, REG_202, 0x40);
- } else {
+ else
au0828_write(dev, REG_202, 0x07);
- }
/* Hardware needs 8 bit addresses */
au0828_write(dev, REG_203, msg->addr << 1);