Skip to content

Commit 40de5fe

Browse files
rddunlapgregkh
authored andcommitted
usb/typec: fix kernel-doc notation warning for typec_match_altmode
Fix kernel-doc warning for missing function parameter 'mode' description: ../drivers/usb/typec/bus.c:268: warning: Function parameter or member 'mode' not described in 'typec_match_altmode' Also fix typos for same function documentation. Fixes: 8a37d87 ("usb: typec: Bus type for alternate modes") Signed-off-by: Randy Dunlap <[email protected]> Acked-by: Heikki Krogerus <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent f3dc41c commit 40de5fe

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

drivers/usb/typec/bus.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,12 +255,13 @@ EXPORT_SYMBOL_GPL(typec_altmode_unregister_driver);
255255
/* API for the port drivers */
256256

257257
/**
258-
* typec_match_altmode - Match SVID to an array of alternate modes
258+
* typec_match_altmode - Match SVID and mode to an array of alternate modes
259259
* @altmodes: Array of alternate modes
260-
* @n: Number of elements in the array, or -1 for NULL termiated arrays
260+
* @n: Number of elements in the array, or -1 for NULL terminated arrays
261261
* @svid: Standard or Vendor ID to match with
262+
* @mode: Mode to match with
262263
*
263-
* Return pointer to an alternate mode with SVID mathing @svid, or NULL when no
264+
* Return pointer to an alternate mode with SVID matching @svid, or NULL when no
264265
* match is found.
265266
*/
266267
struct typec_altmode *typec_match_altmode(struct typec_altmode **altmodes,

0 commit comments

Comments
 (0)