Commit 0255cf9e authored by Krzysztof Opasiak's avatar Krzysztof Opasiak Committed by Greg Kroah-Hartman

usb: usbip: vudc: Rename find_endpoint() to vudc_find_endpoint()

As find_endpoint() is a global funcion rename it to vudc_find_endpoint()
to clearly mark where does it come from.
Signed-off-by: default avatarKrzysztof Opasiak <k.opasiak@samsung.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8c7003a3
...@@ -179,7 +179,7 @@ void v_stop_timer(struct vudc *udc); ...@@ -179,7 +179,7 @@ void v_stop_timer(struct vudc *udc);
struct urbp *alloc_urbp(void); struct urbp *alloc_urbp(void);
void free_urbp_and_urb(struct urbp *urb_p); void free_urbp_and_urb(struct urbp *urb_p);
struct vep *find_endpoint(struct vudc *udc, u8 address); struct vep *vudc_find_endpoint(struct vudc *udc, u8 address);
struct vudc_device *alloc_vudc_device(int devid); struct vudc_device *alloc_vudc_device(int devid);
void put_vudc_device(struct vudc_device *udc_dev); void put_vudc_device(struct vudc_device *udc_dev);
......
...@@ -115,7 +115,7 @@ static void stop_activity(struct vudc *udc) ...@@ -115,7 +115,7 @@ static void stop_activity(struct vudc *udc)
} }
} }
struct vep *find_endpoint(struct vudc *udc, u8 address) struct vep *vudc_find_endpoint(struct vudc *udc, u8 address)
{ {
int i; int i;
......
...@@ -117,7 +117,7 @@ static int v_recv_cmd_submit(struct vudc *udc, ...@@ -117,7 +117,7 @@ static int v_recv_cmd_submit(struct vudc *udc,
address |= USB_DIR_IN; address |= USB_DIR_IN;
spin_lock_irq(&udc->lock); spin_lock_irq(&udc->lock);
urb_p->ep = find_endpoint(udc, address); urb_p->ep = vudc_find_endpoint(udc, address);
if (!urb_p->ep) { if (!urb_p->ep) {
/* we don't know the type, there may be isoc data! */ /* we don't know the type, there may be isoc data! */
dev_err(&udc->pdev->dev, "request to nonexistent endpoint"); dev_err(&udc->pdev->dev, "request to nonexistent endpoint");
......
...@@ -110,7 +110,7 @@ static int handle_control_request(struct vudc *udc, struct urb *urb, ...@@ -110,7 +110,7 @@ static int handle_control_request(struct vudc *udc, struct urb *urb,
} }
} else if (setup->bRequestType == EP_REQUEST) { } else if (setup->bRequestType == EP_REQUEST) {
/* endpoint halt */ /* endpoint halt */
ep2 = find_endpoint(udc, w_index); ep2 = vudc_find_endpoint(udc, w_index);
if (!ep2 || ep2->ep.name == udc->ep[0].ep.name) { if (!ep2 || ep2->ep.name == udc->ep[0].ep.name) {
ret_val = -EOPNOTSUPP; ret_val = -EOPNOTSUPP;
break; break;
...@@ -143,7 +143,7 @@ static int handle_control_request(struct vudc *udc, struct urb *urb, ...@@ -143,7 +143,7 @@ static int handle_control_request(struct vudc *udc, struct urb *urb,
} }
} else if (setup->bRequestType == EP_REQUEST) { } else if (setup->bRequestType == EP_REQUEST) {
/* endpoint halt */ /* endpoint halt */
ep2 = find_endpoint(udc, w_index); ep2 = vudc_find_endpoint(udc, w_index);
if (!ep2) { if (!ep2) {
ret_val = -EOPNOTSUPP; ret_val = -EOPNOTSUPP;
break; break;
...@@ -167,7 +167,7 @@ static int handle_control_request(struct vudc *udc, struct urb *urb, ...@@ -167,7 +167,7 @@ static int handle_control_request(struct vudc *udc, struct urb *urb,
buf = (char *)urb->transfer_buffer; buf = (char *)urb->transfer_buffer;
if (urb->transfer_buffer_length > 0) { if (urb->transfer_buffer_length > 0) {
if (setup->bRequestType == EP_INREQUEST) { if (setup->bRequestType == EP_INREQUEST) {
ep2 = find_endpoint(udc, w_index); ep2 = vudc_find_endpoint(udc, w_index);
if (!ep2) { if (!ep2) {
ret_val = -EOPNOTSUPP; ret_val = -EOPNOTSUPP;
break; break;
......
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