From patchwork Wed Dec 6 18:13:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 174689 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp4289327vqy; Wed, 6 Dec 2023 10:13:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IEqqrZhQrFgdeTieVjZ2ud5oHwwx1uQAZ8me9enzKmkW63fjERdmPUx67ie6Qaozxfe2rKi X-Received: by 2002:a05:6a00:cc8:b0:6be:265:1bf5 with SMTP id b8-20020a056a000cc800b006be02651bf5mr874653pfv.24.1701886424420; Wed, 06 Dec 2023 10:13:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701886424; cv=none; d=google.com; s=arc-20160816; b=wTxJAG0rf5+EGsCbcJ0/CoIjXhp0Xnfy8RaGrx5GvWBr1yo3Kzz9GgUNa90t3iSAoz wklhUB8bc+32C5D45Lj3jsEc4Yk9zJ8KYa3OAiCij/hT7j/yM8bcSfovHIeQt6JIs0Ut ZFq86lgnRiXEMls7qj0wnn65hi+NAagS02dJ7uWKC6R7tJlNAVnUP3f64N/3zbuTNWz2 T1H0e/OwehfeRR2WivoQI0A9rHw7hqQuPT//4dEI3mJML4eA/XwaMdaCOwp/uMc+Wrsm tAUwXK/HKmiH37P8WkYL1CQA3TWT59bd1ZFOPDsvs0KHzgZ/MAwPPw/YIxzpLj5vLziZ cRsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=9Jjhru2ZS2MjwSXGlS5vMOqG5oAjzFFLnSkNdJ/iC7Y=; fh=vb87gQBeG6RZ3nH5gelchqmLSwt4mem+16SgAmqy8/A=; b=Jo3aKl4NaGInEm/J6FEWXVvkrOFYi3tQ7TtWZzXT6TGOBghPYopWdf+0hVOu05muD2 fPGfHLhuixyy78YJ7DjlYHhfyKu1b96WBEapA5Ghfyt+bsivTX5IPQtbhu3X7b3JvYLY aBLeRYEpInpweaRY17M89G6XhnYjEFpcZlzNOiZsf5QP5BqXH2iSeOTAkRe3vZFi2aU0 Dym/fgXrzYzQ6a2De7SW3MhNKUp68016AiyC6Ki4yR30fnc5hu/EUcD6KNvqytODmkN1 hhfd8jG/W7vFiILUUCGGIRFNxj3Zw12Rf0uXWaHgRNczM3c9g+uKyL9KmL9+GqPUC19Z /IFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="fFMF/HdN"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id g192-20020a636bc9000000b005bd0432d9b0si266796pgc.100.2023.12.06.10.13.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 10:13:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="fFMF/HdN"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 7FF6D8031D4A; Wed, 6 Dec 2023 10:13:40 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379772AbjLFSNb (ORCPT + 99 others); Wed, 6 Dec 2023 13:13:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379087AbjLFSNa (ORCPT ); Wed, 6 Dec 2023 13:13:30 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 730D1D5B; Wed, 6 Dec 2023 10:13:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=9Jjhru2ZS2MjwSXGlS5vMOqG5oAjzFFLnSkNdJ/iC7Y=; b=fFMF/HdNhrOgP0tisubvvm+0du sSkWPYchdFU+7JZ81vY6FMVW3yepI6GBNfY+NNR7wyoIlrWZJt6wZU80vblBmk6OcQ3xs81SafMTA JxTJMZgo8gbFEVLl+GD4lyLD1jmMVQ42mMHDA1nKxouae0DEKk3mIM9OkCpy4859yi9fHpw1tIFch NCPunzAZLmxnRtFOlx+zDLfIOq1fUeR+tdqVcPfQC3knFGD/1x9Kr0QJQso33SaSYC2hFsbQJvVb1 rT/329l9EJarlVw0EyMFnOc7yfWOKuQbYeRPatmOWvRWZLndP63LC1LiMrCEwAvQjanWLnTDsp4s8 oQb/tGVg==; Received: from [50.53.46.231] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1rAwOu-00B0qd-0j; Wed, 06 Dec 2023 18:13:36 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Linus Walleij , Greg Kroah-Hartman , linux-usb@vger.kernel.org Subject: [PATCH] usb: fotg210-udc: fix function kernel-doc comments Date: Wed, 6 Dec 2023 10:13:35 -0800 Message-ID: <20231206181335.27540-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 06 Dec 2023 10:13:40 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784557259327943389 X-GMAIL-MSGID: 1784557259327943389 Correct kernel-doc comments to prevent warnings from scripts/kernel-doc. fotg210-udc.c:1103: warning: Function parameter or member 'g' not described in 'fotg210_vbus_session' fotg210-udc.c:1103: warning: Excess function parameter '_gadget' description in 'fotg210_vbus_session' fotg210-udc.c:1103: warning: No description found for return value of 'fotg210_vbus_session' fotg210-udc.c:1129: warning: No description found for return value of 'fotg210_phy_event' Signed-off-by: Randy Dunlap Cc: Linus Walleij Cc: Greg Kroah-Hartman Cc: linux-usb@vger.kernel.org Reviewed-by: Linus Walleij --- drivers/usb/fotg210/fotg210-udc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff -- a/drivers/usb/fotg210/fotg210-udc.c b/drivers/usb/fotg210/fotg210-udc.c --- a/drivers/usb/fotg210/fotg210-udc.c +++ b/drivers/usb/fotg210/fotg210-udc.c @@ -1094,10 +1094,10 @@ static int fotg210_udc_stop(struct usb_g /** * fotg210_vbus_session - Called by external transceiver to enable/disable udc - * @_gadget: usb gadget + * @g: usb gadget * @is_active: 0 if should disable UDC VBUS, 1 if should enable * - * Returns 0 + * Returns: %0 */ static int fotg210_vbus_session(struct usb_gadget *g, int is_active) { @@ -1122,7 +1122,7 @@ static const struct usb_gadget_ops fotg2 * * Called by the USB Phy when a cable connect or disconnect is sensed. * - * Returns NOTIFY_OK or NOTIFY_DONE + * Returns: NOTIFY_OK or NOTIFY_DONE */ static int fotg210_phy_event(struct notifier_block *nb, unsigned long action, void *data)