diff options
Diffstat (limited to 'drivers/media/video/au0828/au0828-i2c.c')
-rw-r--r-- | drivers/media/video/au0828/au0828-i2c.c | 10 |
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); |