Messages in this thread Patch in this message | | | From | Lee Jones <> | Subject | [PATCH 22/24] usb: host: xhci: Document xhci_get_endpoint_index()'s 'desc' param | Date | Wed, 26 May 2021 14:00:35 +0100 |
| |
Fixes the following W=1 kernel build warning(s):
drivers/usb/host/xhci.c:1424: warning: Function parameter or member 'desc' not described in 'xhci_get_endpoint_index'
Cc: Mathias Nyman <mathias.nyman@intel.com> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: linux-usb@vger.kernel.org Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/usb/host/xhci.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index 40ce4b4eb12ad..094b2bf1e2657 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c @@ -1415,6 +1415,8 @@ static void xhci_unmap_urb_for_dma(struct usb_hcd *hcd, struct urb *urb) * HCDs. Find the index for an endpoint given its descriptor. Use the return * value to right shift 1 for the bitmask. * + * @desc: USB endpoint descriptor + * * Index = (epnum * 2) + direction - 1, * where direction = 0 for OUT, 1 for IN. * For control endpoints, the IN index is used (OUT index is unused), so -- 2.31.1
| |