summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/function/f_hid.c
diff options
context:
space:
mode:
authorFelipe F. Tonello <eu@felipetonello.com>2016-08-23 19:24:49 +0200
committerFelipe Balbi <felipe.balbi@linux.intel.com>2016-08-25 11:13:19 +0200
commitaadbe812463f8af1751debb0eaaeec8a778d7ff1 (patch)
tree0ff2ceab225d50b36fa47e7c55f64c928d796e8d /drivers/usb/gadget/function/f_hid.c
parentusb: dwc3: Add ENDXFER command polling (diff)
downloadlinux-aadbe812463f8af1751debb0eaaeec8a778d7ff1.tar.xz
linux-aadbe812463f8af1751debb0eaaeec8a778d7ff1.zip
usb: gadget: remove useless parameter in alloc_ep_req()
The default_length parameter of alloc_ep_req was not really necessary and gadget drivers would almost always create an inline function to pass the same value to len and default_len. This patch removes that parameter and updates all calls to alloc_ep_req() to use the new API. Signed-off-by: Felipe F. Tonello <eu@felipetonello.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/gadget/function/f_hid.c')
-rw-r--r--drivers/usb/gadget/function/f_hid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/function/f_hid.c b/drivers/usb/gadget/function/f_hid.c
index 4cd486600a9b..fa807ce7fc0e 100644
--- a/drivers/usb/gadget/function/f_hid.c
+++ b/drivers/usb/gadget/function/f_hid.c
@@ -365,7 +365,7 @@ static int f_hidg_open(struct inode *inode, struct file *fd)
static inline struct usb_request *hidg_alloc_ep_req(struct usb_ep *ep,
unsigned length)
{
- return alloc_ep_req(ep, length, length);
+ return alloc_ep_req(ep, length);
}
static void hidg_set_report_complete(struct usb_ep *ep, struct usb_request *req)