summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/tm6000
diff options
context:
space:
mode:
authorStefan Ringel <linuxtv@stefanringel.de>2011-11-28 15:46:17 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-11-28 21:30:09 -0200
commitc00ecc97bc638919ff35117290b4fab01354e8d7 (patch)
treec88d2241f047fe128ac2a963314fe0affd5056f7 /drivers/media/video/tm6000
parent078a68c11fe0580a23754fac25a6d9896719278e (diff)
downloadlinux-c00ecc97bc638919ff35117290b4fab01354e8d7.tar.bz2
[media] tm6000: bugfix at tm6000_set_reg_mask() register setting
Signed-off-by: Stefan Ringel <linuxtv@stefanringel.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/tm6000')
-rw-r--r--drivers/media/video/tm6000/tm6000-core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/tm6000/tm6000-core.c b/drivers/media/video/tm6000/tm6000-core.c
index 55d097eaadd8..5d7d045c652b 100644
--- a/drivers/media/video/tm6000/tm6000-core.c
+++ b/drivers/media/video/tm6000/tm6000-core.c
@@ -125,14 +125,14 @@ int tm6000_set_reg_mask(struct tm6000_core *dev, u8 req, u16 value,
u8 new_index;
rc = tm6000_read_write_usb(dev, USB_DIR_IN | USB_TYPE_VENDOR, req,
- value, index, buf, 1);
+ value, 0, buf, 1);
if (rc < 0)
return rc;
new_index = (buf[0] & ~mask) | (index & mask);
- if (new_index == index)
+ if (new_index == buf[0])
return 0;
return tm6000_read_write_usb(dev, USB_DIR_OUT | USB_TYPE_VENDOR,