usb: usbip: vudc: Rename find_endpoint() to vudc_find_endpoint()
authorKrzysztof Opasiak <k.opasiak@samsung.com>
Wed, 27 Apr 2016 18:02:07 +0000 (20:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Apr 2016 19:28:08 +0000 (12:28 -0700)
As find_endpoint() is a global funcion rename it to vudc_find_endpoint()
to clearly mark where does it come from.

Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/usbip/vudc.h
drivers/usb/usbip/vudc_dev.c
drivers/usb/usbip/vudc_rx.c
drivers/usb/usbip/vudc_transfer.c

index 847892339675cbaf15e6bd99ebdfe57019d748a8..25e01b09c4c36abc7683651fe6d5a4c1e883c84b 100644 (file)
@@ -179,7 +179,7 @@ void v_stop_timer(struct vudc *udc);
 struct urbp *alloc_urbp(void);
 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);
 void put_vudc_device(struct vudc_device *udc_dev);
index 0523f29708353b7e5098609a99c3b5a9e711b24e..8994a13819ab96563e08714fd447a39a8d29ab64 100644 (file)
@@ -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;
 
index 0b7abbc3f13b01931f78b286b96f3575f213f889..344bd9473475619020335ffdc9b392c9bc606e82 100644 (file)
@@ -117,7 +117,7 @@ static int v_recv_cmd_submit(struct vudc *udc,
                address |= USB_DIR_IN;
 
        spin_lock_irq(&udc->lock);
-       urb_p->ep = find_endpoint(udc, address);
+       urb_p->ep = vudc_find_endpoint(udc, address);
        if (!urb_p->ep) {
                /* we don't know the type, there may be isoc data! */
                dev_err(&udc->pdev->dev, "request to nonexistent endpoint");
index 5ccde52950411e7ff4f1e4fd71899e84f39892a0..aba6bd478045113524935ccdd0055ffb4996e9eb 100644 (file)
@@ -110,7 +110,7 @@ static int handle_control_request(struct vudc *udc, struct urb *urb,
                        }
                } else if (setup->bRequestType == EP_REQUEST) {
                        /* 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) {
                                ret_val = -EOPNOTSUPP;
                                break;
@@ -143,7 +143,7 @@ static int handle_control_request(struct vudc *udc, struct urb *urb,
                        }
                } else if (setup->bRequestType == EP_REQUEST) {
                        /* endpoint halt */
-                       ep2 = find_endpoint(udc, w_index);
+                       ep2 = vudc_find_endpoint(udc, w_index);
                        if (!ep2) {
                                ret_val = -EOPNOTSUPP;
                                break;
@@ -167,7 +167,7 @@ static int handle_control_request(struct vudc *udc, struct urb *urb,
                        buf = (char *)urb->transfer_buffer;
                        if (urb->transfer_buffer_length > 0) {
                                if (setup->bRequestType == EP_INREQUEST) {
-                                       ep2 = find_endpoint(udc, w_index);
+                                       ep2 = vudc_find_endpoint(udc, w_index);
                                        if (!ep2) {
                                                ret_val = -EOPNOTSUPP;
                                                break;