projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38d75a7
)
V4L/DVB: tm6000: special request for all tuner
author
Stefan Ringel
<stefan.ringel@arcor.de>
Mon, 15 Feb 2010 17:37:21 +0000
(14:37 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Tue, 18 May 2010 03:44:04 +0000
(
00:44
-0300)
Signed-off-by: Stefan Ringel <stefan.ringel@arcor.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/staging/tm6000/tm6000-i2c.c
patch
|
blob
|
history
diff --git
a/drivers/staging/tm6000/tm6000-i2c.c
b/drivers/staging/tm6000/tm6000-i2c.c
index 05df06badd83334da5199b58d835847b41f0b690..656cd199d5e4ce191d5fd82fe74acbb8bafa17cd 100644
(file)
--- a/
drivers/staging/tm6000/tm6000-i2c.c
+++ b/
drivers/staging/tm6000/tm6000-i2c.c
@@
-87,7
+87,7
@@
static int tm6000_i2c_xfer(struct i2c_adapter *i2c_adap,
msgs[i + 1].buf, msgs[i + 1].len);
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);
}
@@
-105,7
+105,7
@@
static int tm6000_i2c_xfer(struct i2c_adapter *i2c_adap,
addr | msgs[i].buf[0] << 8, 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);
}