diff mbox

[3/3] tm6000: bugfix i2c addr

Message ID 1266855693-5554-3-git-send-email-stefan.ringel@arcor.de (mailing list archive)
State Superseded
Headers show

Commit Message

Stefan Ringel Feb. 22, 2010, 4:21 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/staging/tm6000/tm6000-i2c.c b/drivers/staging/tm6000/tm6000-i2c.c
index 89297b0..b261094 100644
--- a/drivers/staging/tm6000/tm6000-i2c.c
+++ b/drivers/staging/tm6000/tm6000-i2c.c
@@ -125,7 +125,7 @@  static int tm6000_i2c_xfer(struct i2c_adapter *i2c_adap,
 
 			i++;
 
-			if (addr == dev->tuner_addr) {
+			if (addr == dev->tuner_addr << 1) {
 				tm6000_set_reg(dev, 0x32, 0,0);
 				tm6000_set_reg(dev, 0x33, 0,0);
 			}
@@ -140,7 +140,7 @@  static int tm6000_i2c_xfer(struct i2c_adapter *i2c_adap,
 			rc = tm6000_i2c_send_regs(dev, addr, msgs[i].buf[0],
 				msgs[i].buf + 1, msgs[i].len - 1);
 
-			if (addr == dev->tuner_addr) {
+			if (addr == dev->tuner_addr  << 1) {
 				tm6000_set_reg(dev, 0x32, 0,0);
 				tm6000_set_reg(dev, 0x33, 0,0);
 			}