[08/11] tm6000: special request for all tuner

Message ID 1266255444-7422-8-git-send-email-stefan.ringel@arcor.de (mailing list archive)
State Superseded, archived
Headers

Commit Message

Stefan Ringel Feb. 15, 2010, 5:37 p.m. UTC
  From: Stefan Ringel <stefan.ringel@arcor.de>

Signed-off-by: Stefan Ringel <stefan.ringel@arcor.de>
  

Patch

diff --git a/drivers/staging/tm6000/tm6000-i2c.c b/drivers/staging/tm6000/tm6000-i2c.c
index 9d02674..ef11d48 100644
--- a/drivers/staging/tm6000/tm6000-i2c.c
+++ b/drivers/staging/tm6000/tm6000-i2c.c
@@ -112,7 +112,7 @@  static int tm6000_i2c_xfer(struct i2c_adapter *i2c_adap,
 			}
 			i++;
 
-			if ((dev->dev_type == TM6010) && (addr == 0xc2)) {
+			if (addr == dev->tuner_addr) {
 				tm6000_set_reg(dev, 0x32, 0,0);
 				tm6000_set_reg(dev, 0x33, 0,0);
 			}
@@ -128,7 +128,7 @@  static int tm6000_i2c_xfer(struct i2c_adapter *i2c_adap,
 			rc = tm6000_i2c_send_byte(dev, addr, msgs[i].buf[0],
 				msgs[i].buf + 1, msgs[i].len - 1);
 
-			if ((dev->dev_type == TM6010) && (addr == 0xc2)) {
+			if (addr == dev->tuner_addr) {
 				tm6000_set_reg(dev, 0x32, 0,0);
 				tm6000_set_reg(dev, 0x33, 0,0);
 			}