Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3752062pxf; Mon, 22 Mar 2021 14:13:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVuR8j9m5DJqO6UUdnWorK28OxUioIyyxFaGAheElcWP2K04zdoT6U9gULXXb58iN8qrXM X-Received: by 2002:a17:907:75d9:: with SMTP id jl25mr1641904ejc.452.1616447624708; Mon, 22 Mar 2021 14:13:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616447624; cv=none; d=google.com; s=arc-20160816; b=LYkgZnj4sK58yFq4TtANiVQG/UPWudQ3VleKXPBHL44Kzx6F7kA7QlAwsbltIPEDZQ T9w3mZEDH9UJPn6SqABIOVvfc3DhqZlsOkEn16ZtGJkofxZ+lgoFKqSmayn/5EKLd7r/ Czmbf8B61Aq2RJoOOR7XVBUnrE0koN2DLotmK7rl9OCnGKchWalTt5S++lbPK5aqAU9J 1piDZItbjTFEbc/qd35fqbikFFHsAZ3Ev2DHjJNA0zrqFnOoIs/spjVA/dVWTxE2h+2D bgoX90wT4/BaHxVShk+KUjfXHw6il4WUE/NgAvTjKgsFVbwyBLi2axoLj3uqC4LAyxxY G4Eg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :ironport-sdr:ironport-sdr; bh=pZa10iouenhfoWsnTBzI6XbE4Gf8toAHesKPzHR1TGo=; b=g74YhGnqTWwvc6NeM8gYLJtdQUDqNBUTZmx1csMr9xddtXH/ETJHUwuKbA0VCgG4lC V+R6+sZhx2EknSJ+/00rS+XXm3K5/0azx6G8RGmhiPBAtUqDM83z9EGQyXiZ8hkmtz0j VUOy1kaT3X5v4a1dS7IjMcaC6tiyE1+4zOiMqmh8XbTzEdP5E5749g+37DhI1Q4Pnvtl FyBXaCf3XqH/+Y+OFiJLxgcuAAsU6gEE4bPcw1LLDjO2qbvO2P2eBoeMoGPuEdv58Svd SuNKAczlq7zfO8QTnH+/wKIYLgGkLit0OlPD3sUKhw512m9a0vhEE7EW18bHpFkdApII SF+Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i19si11907180ejd.152.2021.03.22.14.13.22; Mon, 22 Mar 2021 14:13:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230325AbhCVVMY (ORCPT + 99 others); Mon, 22 Mar 2021 17:12:24 -0400 Received: from mga06.intel.com ([134.134.136.31]:11980 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229871AbhCVVLo (ORCPT ); Mon, 22 Mar 2021 17:11:44 -0400 IronPort-SDR: Vnj1v1MEDgER03XVQQooig2GRuefWXUc8kN4NOzfexyyb/RjHhSh7W7bdN22mggnf3Nb8wwU7+ hF4Ny3nimjaQ== X-IronPort-AV: E=McAfee;i="6000,8403,9931"; a="251703778" X-IronPort-AV: E=Sophos;i="5.81,269,1610438400"; d="scan'208";a="251703778" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Mar 2021 14:11:43 -0700 IronPort-SDR: cu7FV9JPSSrvfnA7KF4jd9cbxwa9O9bJ14iJNB8GBbvWPDwyISdb+o+VuwNf9hHcHdAdl/FAtD FN61i+TTX2tg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,269,1610438400"; d="scan'208";a="390624893" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga002.jf.intel.com with ESMTP; 22 Mar 2021 14:11:41 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 46E3747A; Mon, 22 Mar 2021 23:11:55 +0200 (EET) From: Andy Shevchenko To: Andy Shevchenko , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Felipe Balbi , Greg Kroah-Hartman , Linus Walleij Subject: [PATCH v1 4/6] usb: gadget: pch_udc: Move pch_udc_init() to satisfy kernel doc Date: Mon, 22 Mar 2021 23:11:47 +0200 Message-Id: <20210322211149.6658-4-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210322211149.6658-1-andriy.shevchenko@linux.intel.com> References: <20210322211149.6658-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Kernel doc and the content described by it shouldn't be teared apart. Otherwise validator is not happy: .../pch_udc.c:573: warning: expecting prototype for pch_udc_reconnect(). Prototype was for pch_udc_init() instead Fixes: 1c575d2d2e3f ("usb: gadget: pch_udc: Fix usb/gadget/pch_udc: Fix ether gadget connect/disconnect issue") Signed-off-by: Andy Shevchenko --- drivers/usb/gadget/udc/pch_udc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb/gadget/udc/pch_udc.c b/drivers/usb/gadget/udc/pch_udc.c index 5421075df01c..984c9299d2c6 100644 --- a/drivers/usb/gadget/udc/pch_udc.c +++ b/drivers/usb/gadget/udc/pch_udc.c @@ -563,12 +563,13 @@ static void pch_udc_clear_disconnect(struct pch_udc_dev *dev) pch_udc_bit_clr(dev, UDC_DEVCTL_ADDR, UDC_DEVCTL_RES); } +static void pch_udc_init(struct pch_udc_dev *dev); + /** * pch_udc_reconnect() - This API initializes usb device controller, * and clear the disconnect status. * @dev: Reference to pch_udc_regs structure */ -static void pch_udc_init(struct pch_udc_dev *dev); static void pch_udc_reconnect(struct pch_udc_dev *dev) { pch_udc_init(dev); -- 2.30.2