V4L/DVB: tm6000: tm6000_i2c_xfer: request labeling
authorStefan Ringel <stefan.ringel@arcor.de>
Fri, 2 Apr 2010 16:52:50 +0000 (13:52 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 19 May 2010 15:57:31 +0000 (12:57 -0300)
labeling the request after tuner reading and writeing

Signed-off-by: Stefan Ringel <stefan.ringel@arcor.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/staging/tm6000/tm6000-i2c.c

index ec4c9381c14ab2736a31134fd732fe739d2c2955..2ab632b6fd1d50143c450f9c2924d852309dd98f 100644 (file)
@@ -135,8 +135,8 @@ static int tm6000_i2c_xfer(struct i2c_adapter *i2c_adap,
                        i++;
 
                        if (addr == dev->tuner_addr << 1) {
-                               tm6000_set_reg(dev, 0x32, 0,0);
-                               tm6000_set_reg(dev, 0x33, 0,0);
+                               tm6000_set_reg(dev, REQ_50_SET_START, 0, 0);
+                               tm6000_set_reg(dev, REQ_51_SET_STOP, 0, 0);
                        }
                        if (i2c_debug >= 2)
                                for (byte = 0; byte < msgs[i].len; byte++)
@@ -150,8 +150,8 @@ static int tm6000_i2c_xfer(struct i2c_adapter *i2c_adap,
                                msgs[i].buf + 1, msgs[i].len - 1);
 
                        if (addr == dev->tuner_addr  << 1) {
-                               tm6000_set_reg(dev, 0x32, 0,0);
-                               tm6000_set_reg(dev, 0x33, 0,0);
+                               tm6000_set_reg(dev, REQ_50_SET_START, 0, 0);
+                               tm6000_set_reg(dev, REQ_51_SET_STOP, 0, 0);
                        }
                }
                if (i2c_debug >= 2)