Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

media: remove third argument of usb_maxpacket()

The third argument of usb_maxpacket(): in_out has been deprecated
because it could be derived from the second argument (e.g. using
usb_pipeout(pipe)).

N.B. function usb_maxpacket() was made variadic to accommodate the
transition from the old prototype with three arguments to the new one
with only two arguments (so that no renaming is needed). The variadic
argument is to be removed once all users of usb_maxpacket() get
migrated.

CC: Sean Young <sean@mess.org>
CC: Mauro Carvalho Chehab <mchehab@kernel.org>
CC: Benjamin Valentin <benpicco@googlemail.com>
Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Link: https://lore.kernel.org/r/20220317035514.6378-5-mailhol.vincent@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Vincent Mailhol and committed by
Greg Kroah-Hartman
61f879ab 948bf187

+8 -8
+2 -2
drivers/media/rc/ati_remote.c
··· 773 773 774 774 /* Set up irq_urb */ 775 775 pipe = usb_rcvintpipe(udev, ati_remote->endpoint_in->bEndpointAddress); 776 - maxp = usb_maxpacket(udev, pipe, usb_pipeout(pipe)); 776 + maxp = usb_maxpacket(udev, pipe); 777 777 maxp = (maxp > DATA_BUFSIZE) ? DATA_BUFSIZE : maxp; 778 778 779 779 usb_fill_int_urb(ati_remote->irq_urb, udev, pipe, ati_remote->inbuf, ··· 784 784 785 785 /* Set up out_urb */ 786 786 pipe = usb_sndintpipe(udev, ati_remote->endpoint_out->bEndpointAddress); 787 - maxp = usb_maxpacket(udev, pipe, usb_pipeout(pipe)); 787 + maxp = usb_maxpacket(udev, pipe); 788 788 maxp = (maxp > DATA_BUFSIZE) ? DATA_BUFSIZE : maxp; 789 789 790 790 usb_fill_int_urb(ati_remote->out_urb, udev, pipe, ati_remote->outbuf,
+1 -1
drivers/media/rc/mceusb.c
··· 1728 1728 pipe = usb_rcvintpipe(dev, ep_in->bEndpointAddress); 1729 1729 else 1730 1730 pipe = usb_rcvbulkpipe(dev, ep_in->bEndpointAddress); 1731 - maxp = usb_maxpacket(dev, pipe, usb_pipeout(pipe)); 1731 + maxp = usb_maxpacket(dev, pipe); 1732 1732 1733 1733 ir = kzalloc(sizeof(struct mceusb_dev), GFP_KERNEL); 1734 1734 if (!ir)
+1 -1
drivers/media/rc/streamzap.c
··· 307 307 } 308 308 309 309 pipe = usb_rcvintpipe(usbdev, endpoint->bEndpointAddress); 310 - maxp = usb_maxpacket(usbdev, pipe, usb_pipeout(pipe)); 310 + maxp = usb_maxpacket(usbdev, pipe); 311 311 312 312 if (maxp == 0) { 313 313 dev_err(&intf->dev, "%s: endpoint Max Packet Size is 0!?!\n",
+1 -1
drivers/media/rc/xbox_remote.c
··· 171 171 172 172 /* Set up irq_urb */ 173 173 pipe = usb_rcvintpipe(udev, endpoint_in->bEndpointAddress); 174 - maxp = usb_maxpacket(udev, pipe, usb_pipeout(pipe)); 174 + maxp = usb_maxpacket(udev, pipe); 175 175 maxp = (maxp > DATA_BUFSIZE) ? DATA_BUFSIZE : maxp; 176 176 177 177 usb_fill_int_urb(xbox_remote->irq_urb, udev, pipe, xbox_remote->inbuf,
+1 -1
drivers/media/usb/tm6000/tm6000-dvb.c
··· 120 120 pipe = usb_rcvbulkpipe(dev->udev, dev->bulk_in.endp->desc.bEndpointAddress 121 121 & USB_ENDPOINT_NUMBER_MASK); 122 122 123 - size = usb_maxpacket(dev->udev, pipe, usb_pipeout(pipe)); 123 + size = usb_maxpacket(dev->udev, pipe); 124 124 size = size * 15; /* 512 x 8 or 12 or 15 */ 125 125 126 126 dvb->bulk_urb->transfer_buffer = kzalloc(size, GFP_KERNEL);
+1 -1
drivers/media/usb/tm6000/tm6000-input.c
··· 340 340 dev->int_in.endp->desc.bEndpointAddress 341 341 & USB_ENDPOINT_NUMBER_MASK); 342 342 343 - size = usb_maxpacket(dev->udev, pipe, usb_pipeout(pipe)); 343 + size = usb_maxpacket(dev->udev, pipe); 344 344 dprintk(1, "IR max size: %d\n", size); 345 345 346 346 ir->int_urb->transfer_buffer = kzalloc(size, GFP_ATOMIC);
+1 -1
drivers/media/usb/tm6000/tm6000-video.c
··· 570 570 dev->isoc_in.endp->desc.bEndpointAddress & 571 571 USB_ENDPOINT_NUMBER_MASK); 572 572 573 - size = usb_maxpacket(dev->udev, pipe, usb_pipeout(pipe)); 573 + size = usb_maxpacket(dev->udev, pipe); 574 574 575 575 if (size > dev->isoc_in.maxsize) 576 576 size = dev->isoc_in.maxsize;