xhci: Add missing parameter description to xhci_get_endpoint_index()
authorHans Zhang <18255117159@163.com>
Tue, 6 May 2025 03:31:01 +0000 (11:31 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 May 2025 10:37:22 +0000 (12:37 +0200)
commit85c4aa0a456409511f4383811a88a3cb6b3af75c
treefd3117a32162c1ed19b93f9f10eec46c70ab940e
parentf27c6da58f1129609a7de66e0034bde70f1349f4
xhci: Add missing parameter description to xhci_get_endpoint_index()

Fix kernel-doc warning by documenting the @desc parameter:

drivers/usb/host/xhci.c:1369: warning: Function parameter or struct member 'desc' not described in 'xhci_get_endpoint_index'

Add detailed description of the @desc parameter and clarify the indexing
logic for control endpoints vs other types. This brings the documentation
in line with kernel-doc requirements while maintaining technical accuracy.

Signed-off-by: Hans Zhang <18255117159@163.com>
Link: https://lore.kernel.org/r/20250506033101.206180-1-18255117159@163.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci.c