OSDN Git Service

usb: gadget: remove useless parameter in alloc_ep_req()
authorFelipe F. Tonello <eu@felipetonello.com>
Tue, 23 Aug 2016 17:24:49 +0000 (18:24 +0100)
committerAjay Agarwal <ajaya@codeaurora.org>
Thu, 27 Dec 2018 06:31:50 +0000 (12:01 +0530)
commit556e8bd7bb18a9951a4b9840bca20b9329bad408
tree3ab8292a38b08ea313abd07cc7f17fecc627981c
parent9b20776b05d6ed4a96dc37b79bee695b2010f2a0
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.

Change-Id: Idfe0e0fde8faf5f713a8368d29a4bd155208ffa2
Signed-off-by: Felipe F. Tonello <eu@felipetonello.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Git-commit: aadbe812463f8af1751debb0eaaeec8a778d7ff1
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
[ajaya@codeaurora.org: fix merge conflicts]
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
drivers/usb/gadget/function/f_hid.c
drivers/usb/gadget/function/f_loopback.c
drivers/usb/gadget/function/f_midi.c
drivers/usb/gadget/function/f_sourcesink.c
drivers/usb/gadget/u_f.c
drivers/usb/gadget/u_f.h