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.

Input: 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: Ville Syrjala <syrjala@sci.fi>
CC: Dmitry Torokhov <dmitry.torokhov@gmail.com>
CC: Henk Vergonet <Henk.Vergonet@gmail.com>
Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Link: https://lore.kernel.org/r/20220317035514.6378-4-mailhol.vincent@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Vincent Mailhol and committed by
Greg Kroah-Hartman
948bf187 b45cde33

+6 -6
+1 -1
drivers/input/misc/ati_remote2.c
··· 639 639 return -ENOMEM; 640 640 641 641 pipe = usb_rcvintpipe(udev, ar2->ep[i]->bEndpointAddress); 642 - maxp = usb_maxpacket(udev, pipe, usb_pipeout(pipe)); 642 + maxp = usb_maxpacket(udev, pipe); 643 643 maxp = maxp > 4 ? 4 : maxp; 644 644 645 645 usb_fill_int_urb(ar2->urb[i], udev, pipe, ar2->buf[i], maxp,
+1 -1
drivers/input/misc/cm109.c
··· 745 745 746 746 /* get a handle to the interrupt data pipe */ 747 747 pipe = usb_rcvintpipe(udev, endpoint->bEndpointAddress); 748 - ret = usb_maxpacket(udev, pipe, usb_pipeout(pipe)); 748 + ret = usb_maxpacket(udev, pipe); 749 749 if (ret != USB_PKT_LEN) 750 750 dev_err(&intf->dev, "invalid payload size %d, expected %d\n", 751 751 ret, USB_PKT_LEN);
+1 -1
drivers/input/misc/powermate.c
··· 374 374 375 375 /* get a handle to the interrupt data pipe */ 376 376 pipe = usb_rcvintpipe(udev, endpoint->bEndpointAddress); 377 - maxp = usb_maxpacket(udev, pipe, usb_pipeout(pipe)); 377 + maxp = usb_maxpacket(udev, pipe); 378 378 379 379 if (maxp < POWERMATE_PAYLOAD_SIZE_MIN || maxp > POWERMATE_PAYLOAD_SIZE_MAX) { 380 380 printk(KERN_WARNING "powermate: Expected payload of %d--%d bytes, found %d bytes!\n",
+1 -1
drivers/input/misc/yealink.c
··· 905 905 906 906 /* get a handle to the interrupt data pipe */ 907 907 pipe = usb_rcvintpipe(udev, endpoint->bEndpointAddress); 908 - ret = usb_maxpacket(udev, pipe, usb_pipeout(pipe)); 908 + ret = usb_maxpacket(udev, pipe); 909 909 if (ret != USB_PKT_LEN) 910 910 dev_err(&intf->dev, "invalid payload size %d, expected %zd\n", 911 911 ret, USB_PKT_LEN);
+1 -1
drivers/input/tablet/acecad.c
··· 130 130 return -ENODEV; 131 131 132 132 pipe = usb_rcvintpipe(dev, endpoint->bEndpointAddress); 133 - maxp = usb_maxpacket(dev, pipe, usb_pipeout(pipe)); 133 + maxp = usb_maxpacket(dev, pipe); 134 134 135 135 acecad = kzalloc(sizeof(struct usb_acecad), GFP_KERNEL); 136 136 input_dev = input_allocate_device();
+1 -1
drivers/input/tablet/pegasus_notetaker.c
··· 296 296 pegasus->intf = intf; 297 297 298 298 pipe = usb_rcvintpipe(dev, endpoint->bEndpointAddress); 299 - pegasus->data_len = usb_maxpacket(dev, pipe, usb_pipeout(pipe)); 299 + pegasus->data_len = usb_maxpacket(dev, pipe); 300 300 301 301 pegasus->data = usb_alloc_coherent(dev, pegasus->data_len, GFP_KERNEL, 302 302 &pegasus->data_dma);