Commit 3eddc9e4 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Felipe Balbi

usb: gadget: renesas_usbhs: parameter cleanup for usbhsh_xx_queue_push()

This patch remove unneeded parameter from usbhsh_xx_queue_push()
Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent f352741d
...@@ -500,11 +500,12 @@ static void usbhsh_queue_done(struct usbhs_priv *priv, struct usbhs_pkt *pkt) ...@@ -500,11 +500,12 @@ static void usbhsh_queue_done(struct usbhs_priv *priv, struct usbhs_pkt *pkt)
} }
static int usbhsh_queue_push(struct usb_hcd *hcd, static int usbhsh_queue_push(struct usb_hcd *hcd,
struct usbhs_pipe *pipe,
struct urb *urb, struct urb *urb,
gfp_t mem_flags) gfp_t mem_flags)
{ {
struct usbhsh_hpriv *hpriv = usbhsh_hcd_to_hpriv(hcd); struct usbhsh_hpriv *hpriv = usbhsh_hcd_to_hpriv(hcd);
struct usbhsh_ep *uep = usbhsh_ep_to_uep(urb->ep);
struct usbhs_pipe *pipe = usbhsh_uep_to_pipe(uep);
struct device *dev = usbhsh_hcd_to_dev(hcd); struct device *dev = usbhsh_hcd_to_dev(hcd);
struct usbhsh_request *ureq; struct usbhsh_request *ureq;
void *buf; void *buf;
...@@ -666,11 +667,12 @@ static int usbhsh_status_stage_packet_push(struct usbhsh_hpriv *hpriv, ...@@ -666,11 +667,12 @@ static int usbhsh_status_stage_packet_push(struct usbhsh_hpriv *hpriv,
} }
static int usbhsh_dcp_queue_push(struct usb_hcd *hcd, static int usbhsh_dcp_queue_push(struct usb_hcd *hcd,
struct usbhs_pipe *pipe,
struct urb *urb, struct urb *urb,
gfp_t mflags) gfp_t mflags)
{ {
struct usbhsh_hpriv *hpriv = usbhsh_hcd_to_hpriv(hcd); struct usbhsh_hpriv *hpriv = usbhsh_hcd_to_hpriv(hcd);
struct usbhsh_ep *uep = usbhsh_ep_to_uep(urb->ep);
struct usbhs_pipe *pipe = usbhsh_uep_to_pipe(uep);
struct device *dev = usbhsh_hcd_to_dev(hcd); struct device *dev = usbhsh_hcd_to_dev(hcd);
int ret; int ret;
...@@ -743,7 +745,6 @@ static int usbhsh_urb_enqueue(struct usb_hcd *hcd, ...@@ -743,7 +745,6 @@ static int usbhsh_urb_enqueue(struct usb_hcd *hcd,
struct usb_device *usbv = usbhsh_urb_to_usbv(urb); struct usb_device *usbv = usbhsh_urb_to_usbv(urb);
struct usb_host_endpoint *ep = urb->ep; struct usb_host_endpoint *ep = urb->ep;
struct usbhsh_device *udev, *new_udev = NULL; struct usbhsh_device *udev, *new_udev = NULL;
struct usbhs_pipe *pipe;
struct usbhsh_ep *uep; struct usbhsh_ep *uep;
int is_dir_in = usb_pipein(urb->pipe); int is_dir_in = usb_pipein(urb->pipe);
...@@ -777,15 +778,14 @@ static int usbhsh_urb_enqueue(struct usb_hcd *hcd, ...@@ -777,15 +778,14 @@ static int usbhsh_urb_enqueue(struct usb_hcd *hcd,
if (!uep) if (!uep)
goto usbhsh_urb_enqueue_error_free_device; goto usbhsh_urb_enqueue_error_free_device;
} }
pipe = usbhsh_uep_to_pipe(uep);
/* /*
* push packet * push packet
*/ */
if (usb_pipecontrol(urb->pipe)) if (usb_pipecontrol(urb->pipe))
ret = usbhsh_dcp_queue_push(hcd, pipe, urb, mem_flags); ret = usbhsh_dcp_queue_push(hcd, urb, mem_flags);
else else
ret = usbhsh_queue_push(hcd, pipe, urb, mem_flags); ret = usbhsh_queue_push(hcd, urb, mem_flags);
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment