From patchwork Fri Jul 3 17:41:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 231471 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp2594743ilg; Fri, 3 Jul 2020 10:42:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAXjSpmroc7rMIPUHNMN0uduv7/v2Tx8y4OYhgjkoNgP2uODXuqFp4MSpzJDtcn7ZHh73O X-Received: by 2002:a17:906:1697:: with SMTP id s23mr35072319ejd.166.1593798146642; Fri, 03 Jul 2020 10:42:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593798146; cv=none; d=google.com; s=arc-20160816; b=MmI6Q23pAgii733ehpTMr/A/BQpwvuWK2OasNxDcISN/A4I8DaiT6g9lIThLKnpcoz j0psHeVYYV1HmOS22yvQxkTLpMs9eK/Gm/Y56p3WKOPOvkzfi7437OCYD/6jO8zoyihs ck38ebUBJTle5lFOwqVprDE+yQfZTG7HvLPV0KKepztgBxrKAHozmMmPo2M6/+aExOXv uYcjftFKeeituZg9gJypc6vfdqJxL/4cgInkKW+hGC2HU0dPzPyPbr4NDsf3eLoTwHeK T/V7jGFfXs+j5uR4CKFn5Yq000/AdBARF6g63X50CWp78n45LNbEsU+Sbc3DlzBWkgl4 RiEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xjIIWeYNclz40pA7bk2Qh3oqQG2tAVOyN4aYQkn6OiY=; b=q362zlHjoqruKI+liw+gOoUNv1JUKvxcg96FDKOv/XdMw5QG4BLTj9MF7X0KHXU0Oe o81Exf1lk9ViH/b94iAA0Two/WT2dIX2FEztVs1fk4MRpqpwdB/8Fq0pxqmpysvzVs4o ehAAzb8q0c4X1LbwMSLl6QAplp0ofPXXNnkD9LgwhIqGzP/03OoPzIC5fRVqT5/ZpoQR okvhHWNWlnQZzLCfMxSTRFPa6ie47SF8EJjUrFNilA+dPfk3ANb7kb6RHeJmkXGyKEPV StynsSJ4h8ZSKk+59HIYv/rlvg++bPMbjVAVNlSrbaAro6JXq5LhEzykPd7aHXba1AJL o6nQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oiU0dmtO; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c2si9966712edf.278.2020.07.03.10.42.26; Fri, 03 Jul 2020 10:42:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oiU0dmtO; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726795AbgGCRmY (ORCPT + 5 others); Fri, 3 Jul 2020 13:42:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726687AbgGCRmL (ORCPT ); Fri, 3 Jul 2020 13:42:11 -0400 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71481C061794 for ; Fri, 3 Jul 2020 10:42:11 -0700 (PDT) Received: by mail-wm1-x343.google.com with SMTP id o2so34856099wmh.2 for ; Fri, 03 Jul 2020 10:42:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=xjIIWeYNclz40pA7bk2Qh3oqQG2tAVOyN4aYQkn6OiY=; b=oiU0dmtOVMkBf6TzSeh/ny3md+5yRm4OM/IM4zkiiOFwgo/Qi47cQKLIay8N30COvv nFCgi9+MuTJUdQoM+EYjFAVSSXHFDahthwfrL2L0uG8tX9INuhlJ7/cmRhrmdxrLtuFz oJKhV9g+/B0+eQoFWwl2PcOTlD1idbOo5vbWQavXnyYORLwCMEqSIw3W8buDHcalnHaF MERyReX3fR+NEYYYVX4PHBzMSPy0uiKfTR+qpcIAq0s5oyM5UQiVkJVZ3hVqKAq+kN3d XFrtBQe2kaUyEK2PovU4zqVElnVtkGu+bfCfgt47nCsd0sAKqBjbKOLLmRrOqVDszAd0 jxjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=xjIIWeYNclz40pA7bk2Qh3oqQG2tAVOyN4aYQkn6OiY=; b=NMed4P5V0IznYkyM8vQlcrmaVOIrqBX2Xxl+QgVqloUqJDOQgQ9ysQ9okhJlqBVlKv 54yscTA0ZU+ckB1tdJEuqHf6Wx3vgUip08RYjgaZjWJj98eAC0t54Bj4RUV3A3JxVXBo /NzwGlgg8ySAfE9xjzVmdf7GD5RV+i6uOsFjMRCXtSWqHdrRkQm5VLprTHf5l2DlxUUJ iy2Riqh/hiZSOd34pXpKUb90ENgJht9rzHKoUuQi43VsSe2qJNoG/4wANLgncIEwWTt9 vvtDAJ6tMn5ZBQqOWz74sPAkEIP7alFRYQd4cg029+vKIUyDBzrQnUeH4g50LAb6Cddj aFIA== X-Gm-Message-State: AOAM532euzcGfryMP02NsqdyEpZB+KQ0b3u6YUFAUREeu6l1n5/COL4I TkjWwM4glvRBtTFxTgjqPFbwzA== X-Received: by 2002:a7b:c14a:: with SMTP id z10mr36486119wmi.19.1593798130185; Fri, 03 Jul 2020 10:42:10 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.144]) by smtp.gmail.com with ESMTPSA id x11sm13625799wmc.26.2020.07.03.10.42.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Jul 2020 10:42:09 -0700 (PDT) From: Lee Jones To: gregkh@linuxfoundation.org, linux-usb@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Lee Jones , Felipe Balbi Subject: [PATCH 08/30] usb: gadget: udc: core: Fix a bunch of kerneldoc misdemeanours Date: Fri, 3 Jul 2020 18:41:26 +0100 Message-Id: <20200703174148.2749969-9-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200703174148.2749969-1-lee.jones@linaro.org> References: <20200703174148.2749969-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Firstly, file headers should not be in kerneldoc format. Function args should be in the format '@.*: '. We also take the time to add some descriptions for various argument which have been previously left out. Finally we remove descriptions for absent arguments. Fixes the following W=1 kernel build warning(s): drivers/usb/gadget/udc/core.c:25: warning: Incorrect use of kernel-doc format: * struct usb_udc - describes one usb device controller drivers/usb/gadget/udc/core.c:36: warning: cannot understand function prototype: 'struct usb_udc ' drivers/usb/gadget/udc/core.c:901: warning: Function parameter or member 'ep' not described in 'usb_gadget_giveback_request' drivers/usb/gadget/udc/core.c:901: warning: Function parameter or member 'req' not described in 'usb_gadget_giveback_request' drivers/usb/gadget/udc/core.c:1098: warning: Function parameter or member 'udc' not described in 'usb_gadget_udc_stop' drivers/usb/gadget/udc/core.c:1098: warning: Excess function parameter 'gadget' description in 'usb_gadget_udc_stop' drivers/usb/gadget/udc/core.c:1098: warning: Excess function parameter 'driver' description in 'usb_gadget_udc_stop' Cc: Felipe Balbi Signed-off-by: Lee Jones --- drivers/usb/gadget/udc/core.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) -- 2.25.1 diff --git a/drivers/usb/gadget/udc/core.c b/drivers/usb/gadget/udc/core.c index 2e28dde8376f6..16790c02a530c 100644 --- a/drivers/usb/gadget/udc/core.c +++ b/drivers/usb/gadget/udc/core.c @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-2.0 -/** +/* * udc.c - Core UDC Framework * * Copyright (C) 2010 Texas Instruments @@ -23,11 +23,11 @@ /** * struct usb_udc - describes one usb device controller - * @driver - the gadget driver pointer. For use by the class code - * @dev - the child device to the actual controller - * @gadget - the gadget. For use by the class code - * @list - for use by the udc class driver - * @vbus - for udcs who care about vbus status, this value is real vbus status; + * @driver: the gadget driver pointer. For use by the class code + * @dev: the child device to the actual controller + * @gadget: the gadget. For use by the class code + * @list: for use by the udc class driver + * @vbus: for udcs who care about vbus status, this value is real vbus status; * for udcs who do not care about vbus status, this value is always true * * This represents the internal data structure which is used by the UDC-class @@ -891,6 +891,9 @@ EXPORT_SYMBOL_GPL(usb_gadget_unmap_request); /** * usb_gadget_giveback_request - give the request back to the gadget layer + * @ep: the endpoint to be used with with the request + * @req: the request being given back + * * Context: in_interrupt() * * This is called by device controller drivers in order to return the @@ -1084,8 +1087,7 @@ static inline int usb_gadget_udc_start(struct usb_udc *udc) /** * usb_gadget_udc_stop - tells usb device controller we don't need it anymore - * @gadget: The device we want to stop activity - * @driver: The driver to unbind from @gadget + * @udc: The UDC to be stopped * * This call is issued by the UDC Class driver after calling * gadget driver's unbind() method.