Skip to content

Commit 43febb2

Browse files
nmenonFelipe Balbi
authored andcommitted
usb: gadget: composite: fix kernel-doc warnings
A few trivial fixes for composite driver: Warning(include/linux/usb/composite.h:165): No description found for parameter 'fs_descriptors' Warning(include/linux/usb/composite.h:165): Excess struct/union/enum/typedef member 'descriptors' description in 'usb_function' Warning(include/linux/usb/composite.h:321): No description found for parameter 'gadget_driver' Warning(drivers/usb/gadget/composite.c:1777): Excess function parameter 'bind' description in 'usb_composite_probe' Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Jiri Kosina <trivial@kernel.org> Cc: linux-usb@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Nishanth Menon <nm@ti.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
1 parent 29240e2 commit 43febb2

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

‎drivers/usb/gadget/composite.c‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1757,10 +1757,7 @@ static const struct usb_gadget_driver composite_driver_template = {
17571757
/**
17581758
* usb_composite_probe() - register a composite driver
17591759
* @driver: the driver to register
1760-
* @bind: the callback used to allocate resources that are shared across the
1761-
* whole device, such as string IDs, and add its configurations using
1762-
* @usb_add_config(). This may fail by returning a negative errno
1763-
* value; it should return zero on successful initialization.
1760+
*
17641761
* Context: single threaded during gadget setup
17651762
*
17661763
* This function is used to register drivers using the composite driver

‎include/linux/usb/composite.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ struct usb_configuration;
6060
* @name: For diagnostics, identifies the function.
6161
* @strings: tables of strings, keyed by identifiers assigned during bind()
6262
* and by language IDs provided in control requests
63-
* @descriptors: Table of full (or low) speed descriptors, using interface and
63+
* @fs_descriptors: Table of full (or low) speed descriptors, using interface and
6464
* string identifiers assigned during @bind(). If this pointer is null,
6565
* the function will not be available at full speed (or at low speed).
6666
* @hs_descriptors: Table of high speed descriptors, using interface and
@@ -290,6 +290,7 @@ enum {
290290
* after function notifications
291291
* @resume: Notifies configuration when the host restarts USB traffic,
292292
* before function notifications
293+
* @gadget_driver: Gadget driver controlling this driver
293294
*
294295
* Devices default to reporting self powered operation. Devices which rely
295296
* on bus powered operation should report this in their @bind method.

0 commit comments

Comments
 (0)