summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Neukum <oneukum@suse.com>2023-03-16 16:15:07 +0300
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2023-04-11 18:10:10 +0300
commit91f1312069bdf51ed5f4eb979f90b78351876cc0 (patch)
treebd7f2dd87b34ecf0bdcd87cd085c429d90654113
parentb6f790a5767bbc272d2904dedc92227f5457e9f5 (diff)
downloadlinux-91f1312069bdf51ed5f4eb979f90b78351876cc0.tar.xz
usbtv: usbtv_set_regs: the pipe is output
We are setting a value. That is output and the pipe has to match that. Signed-off-by: Oliver Neukum <oneukum@suse.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rw-r--r--drivers/media/usb/usbtv/usbtv-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/usbtv/usbtv-core.c b/drivers/media/usb/usbtv/usbtv-core.c
index 2308c0b4f5e7..1f7620cd2996 100644
--- a/drivers/media/usb/usbtv/usbtv-core.c
+++ b/drivers/media/usb/usbtv/usbtv-core.c
@@ -47,7 +47,7 @@
int usbtv_set_regs(struct usbtv *usbtv, const u16 regs[][2], int size)
{
int ret;
- int pipe = usb_rcvctrlpipe(usbtv->udev, 0);
+ int pipe = usb_sndctrlpipe(usbtv->udev, 0);
int i;
for (i = 0; i < size; i++) {