Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit d59f6d9

Browse files
AlanSterngregkh
authored andcommitted
USB: gadget: Fix mistakes in UDC core kerneldoc
This patch fixes some minor mistakes in the UDC core's kerneldoc. Signed-off-by: Alan Stern <[email protected]> Link: https://lore.kernel.org/r/YmSpKpnWR8WWEk/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 6ebb449 commit d59f6d9

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

drivers/usb/gadget/udc/core.c

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1262,9 +1262,6 @@ static int check_pending_gadget_drivers(struct usb_udc *udc)
12621262
* device.
12631263
* @gadget: the gadget to be initialized.
12641264
* @release: a gadget release function.
1265-
*
1266-
* Returns zero on success, negative errno otherwise.
1267-
* Calls the gadget release function in the latter case.
12681265
*/
12691266
void usb_initialize_gadget(struct device *parent, struct usb_gadget *gadget,
12701267
void (*release)(struct device *dev))
@@ -1441,11 +1438,10 @@ static void usb_gadget_remove_driver(struct usb_udc *udc)
14411438
}
14421439

14431440
/**
1444-
* usb_del_gadget - deletes @udc from udc_list
1445-
* @gadget: the gadget to be removed.
1441+
* usb_del_gadget - deletes a gadget and unregisters its udc
1442+
* @gadget: the gadget to be deleted.
14461443
*
1447-
* This will call usb_gadget_unregister_driver() if
1448-
* the @udc is still busy.
1444+
* This will unbind @gadget, if it is bound.
14491445
* It will not do a final usb_put_gadget().
14501446
*/
14511447
void usb_del_gadget(struct usb_gadget *gadget)
@@ -1476,8 +1472,8 @@ void usb_del_gadget(struct usb_gadget *gadget)
14761472
EXPORT_SYMBOL_GPL(usb_del_gadget);
14771473

14781474
/**
1479-
* usb_del_gadget_udc - deletes @udc from udc_list
1480-
* @gadget: the gadget to be removed.
1475+
* usb_del_gadget_udc - unregisters a gadget
1476+
* @gadget: the gadget to be unregistered.
14811477
*
14821478
* Calls usb_del_gadget() and does a final usb_put_gadget().
14831479
*/

0 commit comments

Comments
 (0)