Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 02e8c966 authored by Felipe Balbi's avatar Felipe Balbi
Browse files

usb: gadget: udc: core: prepend udc_attach_driver with usb_



No functional changes, just adding a prefix
which should have been there from the start.

Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 22835b80
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -271,7 +271,7 @@ static ssize_t gadget_dev_desc_UDC_store(struct gadget_info *gi,
			ret = -EBUSY;
			goto err;
		}
		ret = udc_attach_driver(name, &gi->composite.gadget_driver);
		ret = usb_udc_attach_driver(name, &gi->composite.gadget_driver);
		if (ret)
			goto err;
		gi->udc_name = name;
+2 −2
Original line number Diff line number Diff line
@@ -411,7 +411,7 @@ static int udc_bind_to_driver(struct usb_udc *udc, struct usb_gadget_driver *dri
	return ret;
}

int udc_attach_driver(const char *name, struct usb_gadget_driver *driver)
int usb_udc_attach_driver(const char *name, struct usb_gadget_driver *driver)
{
	struct usb_udc *udc = NULL;
	int ret = -ENODEV;
@@ -435,7 +435,7 @@ int udc_attach_driver(const char *name, struct usb_gadget_driver *driver)
	mutex_unlock(&udc_lock);
	return ret;
}
EXPORT_SYMBOL_GPL(udc_attach_driver);
EXPORT_SYMBOL_GPL(usb_udc_attach_driver);

int usb_gadget_probe_driver(struct usb_gadget_driver *driver)
{
+1 −1
Original line number Diff line number Diff line
@@ -924,7 +924,7 @@ extern int usb_add_gadget_udc_release(struct device *parent,
		struct usb_gadget *gadget, void (*release)(struct device *dev));
extern int usb_add_gadget_udc(struct device *parent, struct usb_gadget *gadget);
extern void usb_del_gadget_udc(struct usb_gadget *gadget);
extern int udc_attach_driver(const char *name,
extern int usb_udc_attach_driver(const char *name,
		struct usb_gadget_driver *driver);

/*-------------------------------------------------------------------------*/