History

usb: remove third argument of usb_maxpacket()

Now that all users of usb_maxpacket() have been migrated to only use two arguments, remove the third variadic argument which was introduced for the transition.

Vincent Mailhol committed 4 years ago

Commit 2ddf7611 parent 80b2b031 file · +1 −2Browse files

Unified · Split

include/linux/usb.h+1−2
@@ -1969,8 +1969,7 @@ usb_pipe_endpoint(struct usb_device *dev, unsigned int pipe) · 1968 unmodified lines
1969 return eps[usb_pipeendpoint(pipe)];1969 return eps[usb_pipeendpoint(pipe)];
1970}1970}
1971 1971
1972static inline u16 usb_maxpacket(struct usb_device *udev, int pipe,1972static inline u16 usb_maxpacket(struct usb_device *udev, int pipe)
1973 /* int is_out deprecated */ ...)
1974{1973{
1975 struct usb_host_endpoint *ep;1974 struct usb_host_endpoint *ep;
1976 unsigned epnum = usb_pipeendpoint(pipe);1975 unsigned epnum = usb_pipeendpoint(pipe);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t