Message ID | 20230706142755.124879-3-marpagan@redhat.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2622798vqx; Thu, 6 Jul 2023 08:02:29 -0700 (PDT) X-Google-Smtp-Source: APBJJlFtoKYfUydbI78w0uVA6ZpIcm1Y1TTsYGc7GYxUVBQGlgZ0eFGN+CaZy5AYl9xd96Hdo6sD X-Received: by 2002:a05:6a00:1953:b0:668:731b:517e with SMTP id s19-20020a056a00195300b00668731b517emr2295311pfk.24.1688655748956; Thu, 06 Jul 2023 08:02:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688655748; cv=none; d=google.com; s=arc-20160816; b=IKWe42PdY8q6UD48z2duc37epohSgHF9TbOpJWqQm2o9WE3I8F9R6vT46UjLNL3iTO Pa5vrW+ibOxioQCk+gp7XICP6LRwyIneM3QvPnS9MNqp0dLZ9JEka3XYrkzwCaEQJNll MgFwElwvvzMmmPduJFx7Rn5HqCwAyD37Css2xi4Un0zQao2DKWPZqxeHlw+j/wUOEIl7 nFo4+qVLWt1r3Xulr+Izp9oWbFc2r/o0+udfHI9cotaDLM8FQBa4DFpyojUbpVoy7QVK uc6yZ1urYmlosNRuH2V/o1G972uEyJkAhjaRj8TrDlG8rFm0pF5uU7nD0HKN3x0/ZxxC 0eEw== 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 :dkim-signature; bh=EiEyy1Zz1RJBfezlwrqTDqR5fyYdhtm3nESopN9SQeo=; fh=M37Ydd+BXMWH9O/XP+uN5l3PQrnD/ZjHRj9NyKzE96w=; b=AW2ppy4opN9YGmKEwZdhyaebrxgHKRN8xnxKNuQUj5rXz1RMhOanWxpsJsNOayjxQr gcO6MUcL/gzHkS95DF4eWiuaGhb4GVQg0Fgv+LKYVW1zNE2n+EWvDE7juDXM+OtONQmA l/1K0FXfmkFgQ/Ld0x8ppnNkUsoZdPQarBuesxDgCO6HFDyI5T5l2W+NS9L6hUgLVe9x voKS3/hTItfmEee8MUxykcxD6D78DcWcwekolYiVgNmhyTINQLWQMOJkerW9qo9u37wd wVgyj59nYxGFt9/EIIS9aHgyPQb5+2Vc74I+AosKWPCA1ZRRek2xRSjggtiBYAYL033v 2b7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bitsf8QC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p5-20020a634f45000000b0054ff42d3833si1689433pgl.336.2023.07.06.08.02.02; Thu, 06 Jul 2023 08:02:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bitsf8QC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232877AbjGFO3L (ORCPT <rfc822;hadasmailinglist@gmail.com> + 99 others); Thu, 6 Jul 2023 10:29:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232840AbjGFO3J (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 6 Jul 2023 10:29:09 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCBD1173F for <linux-kernel@vger.kernel.org>; Thu, 6 Jul 2023 07:28:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1688653706; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=EiEyy1Zz1RJBfezlwrqTDqR5fyYdhtm3nESopN9SQeo=; b=bitsf8QC53jH+qq80hQINAg+HDLYDAsZV6UBUhLctL16JHsca1He4G/Sua3B9TNXKMU7Un q6ZTOiXFe20ixst3ZGL0nHrLWWkN/jWpsK/i7iXHNsUmTctXwEiMl+QUJFdKoJalgI9zQG b6RlHCJbPDK2OYK8KH080Am2q2U90DQ= Received: from mail-ua1-f69.google.com (mail-ua1-f69.google.com [209.85.222.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-93-ERAfOp2hMLqOXWJXbggOXw-1; Thu, 06 Jul 2023 10:28:24 -0400 X-MC-Unique: ERAfOp2hMLqOXWJXbggOXw-1 Received: by mail-ua1-f69.google.com with SMTP id a1e0cc1a2514c-78cc6fa9ad0so146570241.0 for <linux-kernel@vger.kernel.org>; Thu, 06 Jul 2023 07:28:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688653704; x=1691245704; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EiEyy1Zz1RJBfezlwrqTDqR5fyYdhtm3nESopN9SQeo=; b=X5wwIf5ozspL4WwZIDnknB/jwtB5jjFXR5y+UX4rX0et6KerlVg9Sof1+G1iLvMYY0 g0qQ756MsYgjvtsbjhGl554OuR4DpzVjUO20/W0Dt8sKryhIGHEGJYMxe9Sr0vcCDY5A CCPgyA5BJk94dtoooubtwzjTVJUep8V1LvSoed3QpvdC6XC95bqah9NmJX0EQURpRIOL BZxIA6xiL9OgGCyHtqvk5cXxg6MKDH5cItF51NgYtXsB5NHMu7SiHJIUELvDr92HNVxo u+zFkMhA8wFy4ODoojQX+e/YpyZu/q0YUEeBkSLmpxLABn3qrBMP2gD3EOJPaAYJNmPI 2SrQ== X-Gm-Message-State: ABy/qLbL8G3mqSQVxshhZrdpR8WgrmeC74diLY8Yr3xewxk08chCQx7w iOikDzNUw+YF1xhKjOuY8KekoRZsJDp5d4ka6JYG7HYz8aPMzHmclEHH/EDlX9f/+hVZeuclLl+ JNEFsQheOJybXjK0jDsoOHIU= X-Received: by 2002:a67:f78f:0:b0:443:6792:38a with SMTP id j15-20020a67f78f000000b004436792038amr666508vso.34.1688653704257; Thu, 06 Jul 2023 07:28:24 -0700 (PDT) X-Received: by 2002:a67:f78f:0:b0:443:6792:38a with SMTP id j15-20020a67f78f000000b004436792038amr666502vso.34.1688653703990; Thu, 06 Jul 2023 07:28:23 -0700 (PDT) Received: from klayman.redhat.com (net-2-34-24-242.cust.vodafonedsl.it. [2.34.24.242]) by smtp.gmail.com with ESMTPSA id r21-20020a0cb295000000b0063631be090csm923526qve.125.2023.07.06.07.28.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jul 2023 07:28:23 -0700 (PDT) From: Marco Pagani <marpagan@redhat.com> To: Moritz Fischer <mdf@kernel.org>, Wu Hao <hao.wu@intel.com>, Xu Yilun <yilun.xu@intel.com>, Tom Rix <trix@redhat.com> Cc: Marco Pagani <marpagan@redhat.com>, linux-kernel@vger.kernel.org, linux-fpga@vger.kernel.org Subject: [RFC PATCH 2/2] fpga: bridge: fix kernel-doc Date: Thu, 6 Jul 2023 16:27:55 +0200 Message-ID: <20230706142755.124879-3-marpagan@redhat.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230706142755.124879-1-marpagan@redhat.com> References: <20230706142755.124879-1-marpagan@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770683890652772635?= X-GMAIL-MSGID: =?utf-8?q?1770683890652772635?= |
Series |
fpga: fix kernel-doc warnings and align descriptions for the core components
|
|
Commit Message
Marco Pagani
July 6, 2023, 2:27 p.m. UTC
Fix the following warnings issued by the kernel-doc script:
drivers/fpga/fpga-bridge.c:99: warning: No description found for return value of 'of_fpga_bridge_get'
drivers/fpga/fpga-bridge.c:163: warning: No description found for return value of 'fpga_bridges_enable'
drivers/fpga/fpga-bridge.c:187: warning: No description found for return value of 'fpga_bridges_disable'
drivers/fpga/fpga-bridge.c:238: warning: No description found for return value of 'of_fpga_bridge_get_to_list'
drivers/fpga/fpga-bridge.c:268: warning: No description found for return value of 'fpga_bridge_get_to_list'
- Extend the return description of of_fpga_bridge_get() to include the
case when try_module_get() fails.
Signed-off-by: Marco Pagani <marpagan@redhat.com>
---
drivers/fpga/fpga-bridge.c | 23 ++++++++++++-----------
1 file changed, 12 insertions(+), 11 deletions(-)
Comments
HI-- On 7/6/23 07:27, Marco Pagani wrote: > Fix the following warnings issued by the kernel-doc script: > > drivers/fpga/fpga-bridge.c:99: warning: No description found for return value of 'of_fpga_bridge_get' > drivers/fpga/fpga-bridge.c:163: warning: No description found for return value of 'fpga_bridges_enable' > drivers/fpga/fpga-bridge.c:187: warning: No description found for return value of 'fpga_bridges_disable' > drivers/fpga/fpga-bridge.c:238: warning: No description found for return value of 'of_fpga_bridge_get_to_list' > drivers/fpga/fpga-bridge.c:268: warning: No description found for return value of 'fpga_bridge_get_to_list' > > - Extend the return description of of_fpga_bridge_get() to include the > case when try_module_get() fails. > > Signed-off-by: Marco Pagani <marpagan@redhat.com> > --- > drivers/fpga/fpga-bridge.c | 23 ++++++++++++----------- > 1 file changed, 12 insertions(+), 11 deletions(-) > > diff --git a/drivers/fpga/fpga-bridge.c b/drivers/fpga/fpga-bridge.c > index a6c25dee9cc1..0b76c67c50e5 100644 > --- a/drivers/fpga/fpga-bridge.c > +++ b/drivers/fpga/fpga-bridge.c > @@ -87,12 +87,13 @@ static struct fpga_bridge *__fpga_bridge_get(struct device *dev, > /** > * of_fpga_bridge_get - get an exclusive reference to an fpga bridge > * > - * @np: node pointer of an FPGA bridge > - * @info: fpga image specific information > + * @np: node pointer of an FPGA bridge. > + * @info: fpga image specific information. Those are not sentences. There is no reason that a period ('.') is needed to end those lines. OTOH, the maintainers can do as they like with it. The rest looks good. Thanks. Reviewed-by: Randy Dunlap <rdunlap@infradead.org> > * > - * Return fpga_bridge struct if successful. > - * Return -EBUSY if someone already has a reference to the bridge. > - * Return -ENODEV if @np is not an FPGA Bridge. > + * Return: > + * * fpga_bridge struct pointer if successful. > + * * -EBUSY if someone already has a reference to the bridge. > + * * -ENODEV if @np is not an FPGA Bridge or can't take parent driver refcount. > */ > struct fpga_bridge *of_fpga_bridge_get(struct device_node *np, > struct fpga_image_info *info) > @@ -155,9 +156,9 @@ EXPORT_SYMBOL_GPL(fpga_bridge_put); > * fpga_bridges_enable - enable bridges in a list > * @bridge_list: list of FPGA bridges > * > - * Enable each bridge in the list. If list is empty, do nothing. > + * Enable each bridge in the list. If list is empty, do nothing. > * > - * Return 0 for success or empty bridge list; return error code otherwise. > + * Return: 0 for success or empty bridge list or an error code otherwise. > */ > int fpga_bridges_enable(struct list_head *bridge_list) > { > @@ -179,9 +180,9 @@ EXPORT_SYMBOL_GPL(fpga_bridges_enable); > * > * @bridge_list: list of FPGA bridges > * > - * Disable each bridge in the list. If list is empty, do nothing. > + * Disable each bridge in the list. If list is empty, do nothing. > * > - * Return 0 for success or empty bridge list; return error code otherwise. > + * Return: 0 for success or empty bridge list or an error code otherwise. > */ > int fpga_bridges_disable(struct list_head *bridge_list) > { > @@ -230,7 +231,7 @@ EXPORT_SYMBOL_GPL(fpga_bridges_put); > * > * Get an exclusive reference to the bridge and it to the list. > * > - * Return 0 for success, error code from of_fpga_bridge_get() otherwise. > + * Return: 0 for success, error code from of_fpga_bridge_get() otherwise. > */ > int of_fpga_bridge_get_to_list(struct device_node *np, > struct fpga_image_info *info, > @@ -260,7 +261,7 @@ EXPORT_SYMBOL_GPL(of_fpga_bridge_get_to_list); > * > * Get an exclusive reference to the bridge and it to the list. > * > - * Return 0 for success, error code from fpga_bridge_get() otherwise. > + * Return: 0 for success, error code from fpga_bridge_get() otherwise. > */ > int fpga_bridge_get_to_list(struct device *dev, > struct fpga_image_info *info,
Hi again, On 7/6/23 14:35, Randy Dunlap wrote: > HI-- > > On 7/6/23 07:27, Marco Pagani wrote: >> Fix the following warnings issued by the kernel-doc script: >> >> drivers/fpga/fpga-bridge.c:99: warning: No description found for return value of 'of_fpga_bridge_get' >> drivers/fpga/fpga-bridge.c:163: warning: No description found for return value of 'fpga_bridges_enable' >> drivers/fpga/fpga-bridge.c:187: warning: No description found for return value of 'fpga_bridges_disable' >> drivers/fpga/fpga-bridge.c:238: warning: No description found for return value of 'of_fpga_bridge_get_to_list' >> drivers/fpga/fpga-bridge.c:268: warning: No description found for return value of 'fpga_bridge_get_to_list' >> >> - Extend the return description of of_fpga_bridge_get() to include the >> case when try_module_get() fails. >> >> Signed-off-by: Marco Pagani <marpagan@redhat.com> >> --- >> drivers/fpga/fpga-bridge.c | 23 ++++++++++++----------- >> 1 file changed, 12 insertions(+), 11 deletions(-) >> >> diff --git a/drivers/fpga/fpga-bridge.c b/drivers/fpga/fpga-bridge.c >> index a6c25dee9cc1..0b76c67c50e5 100644 >> --- a/drivers/fpga/fpga-bridge.c >> +++ b/drivers/fpga/fpga-bridge.c >> @@ -87,12 +87,13 @@ static struct fpga_bridge *__fpga_bridge_get(struct device *dev, >> /** >> * of_fpga_bridge_get - get an exclusive reference to an fpga bridge >> * >> - * @np: node pointer of an FPGA bridge >> - * @info: fpga image specific information >> + * @np: node pointer of an FPGA bridge. >> + * @info: fpga image specific information. > > Those are not sentences. There is no reason that a period ('.') is needed > to end those lines. OTOH, the maintainers can do as they like with it. > > The rest looks good. Thanks. > > Reviewed-by: Randy Dunlap <rdunlap@infradead.org> > >> * >> - * Return fpga_bridge struct if successful. >> - * Return -EBUSY if someone already has a reference to the bridge. >> - * Return -ENODEV if @np is not an FPGA Bridge. >> + * Return: >> + * * fpga_bridge struct pointer if successful. >> + * * -EBUSY if someone already has a reference to the bridge. >> + * * -ENODEV if @np is not an FPGA Bridge or can't take parent driver refcount. >> */ >> struct fpga_bridge *of_fpga_bridge_get(struct device_node *np, >> struct fpga_image_info *info) >> @@ -155,9 +156,9 @@ EXPORT_SYMBOL_GPL(fpga_bridge_put); >> * fpga_bridges_enable - enable bridges in a list >> * @bridge_list: list of FPGA bridges >> * >> - * Enable each bridge in the list. If list is empty, do nothing. >> + * Enable each bridge in the list. If list is empty, do nothing. These (multiple) 2-space to 1-space changes also are not necessary but are at the discretion of the maintainers. >> * >> - * Return 0 for success or empty bridge list; return error code otherwise. >> + * Return: 0 for success or empty bridge list or an error code otherwise. >> */ >> int fpga_bridges_enable(struct list_head *bridge_list) >> { >> @@ -179,9 +180,9 @@ EXPORT_SYMBOL_GPL(fpga_bridges_enable); >> * >> * @bridge_list: list of FPGA bridges >> * >> - * Disable each bridge in the list. If list is empty, do nothing. >> + * Disable each bridge in the list. If list is empty, do nothing. >> * >> - * Return 0 for success or empty bridge list; return error code otherwise. >> + * Return: 0 for success or empty bridge list or an error code otherwise. >> */ >> int fpga_bridges_disable(struct list_head *bridge_list) >> { >> @@ -230,7 +231,7 @@ EXPORT_SYMBOL_GPL(fpga_bridges_put); >> * >> * Get an exclusive reference to the bridge and it to the list. >> * >> - * Return 0 for success, error code from of_fpga_bridge_get() otherwise. >> + * Return: 0 for success, error code from of_fpga_bridge_get() otherwise. >> */ >> int of_fpga_bridge_get_to_list(struct device_node *np, >> struct fpga_image_info *info, >> @@ -260,7 +261,7 @@ EXPORT_SYMBOL_GPL(of_fpga_bridge_get_to_list); >> * >> * Get an exclusive reference to the bridge and it to the list. >> * >> - * Return 0 for success, error code from fpga_bridge_get() otherwise. >> + * Return: 0 for success, error code from fpga_bridge_get() otherwise. >> */ >> int fpga_bridge_get_to_list(struct device *dev, >> struct fpga_image_info *info, >
On 2023-07-06 23:35, Randy Dunlap wrote: > HI-- > > On 7/6/23 07:27, Marco Pagani wrote: >> Fix the following warnings issued by the kernel-doc script: >> >> drivers/fpga/fpga-bridge.c:99: warning: No description found for return value of 'of_fpga_bridge_get' >> drivers/fpga/fpga-bridge.c:163: warning: No description found for return value of 'fpga_bridges_enable' >> drivers/fpga/fpga-bridge.c:187: warning: No description found for return value of 'fpga_bridges_disable' >> drivers/fpga/fpga-bridge.c:238: warning: No description found for return value of 'of_fpga_bridge_get_to_list' >> drivers/fpga/fpga-bridge.c:268: warning: No description found for return value of 'fpga_bridge_get_to_list' >> >> - Extend the return description of of_fpga_bridge_get() to include the >> case when try_module_get() fails. >> >> Signed-off-by: Marco Pagani <marpagan@redhat.com> >> --- >> drivers/fpga/fpga-bridge.c | 23 ++++++++++++----------- >> 1 file changed, 12 insertions(+), 11 deletions(-) >> >> diff --git a/drivers/fpga/fpga-bridge.c b/drivers/fpga/fpga-bridge.c >> index a6c25dee9cc1..0b76c67c50e5 100644 >> --- a/drivers/fpga/fpga-bridge.c >> +++ b/drivers/fpga/fpga-bridge.c >> @@ -87,12 +87,13 @@ static struct fpga_bridge *__fpga_bridge_get(struct device *dev, >> /** >> * of_fpga_bridge_get - get an exclusive reference to an fpga bridge >> * >> - * @np: node pointer of an FPGA bridge >> - * @info: fpga image specific information >> + * @np: node pointer of an FPGA bridge. >> + * @info: fpga image specific information. > > Those are not sentences. There is no reason that a period ('.') is needed > to end those lines. OTOH, the maintainers can do as they like with it. > > The rest looks good. Thanks. > > Reviewed-by: Randy Dunlap <rdunlap@infradead.org> I added a period at the end of each argument description to follow the style recommended in the "Function documentation" section of the kernel-doc documentation. Thanks, Marco [...]
On 2023-07-07 at 10:50:16 +0200, Marco Pagani wrote: > > > On 2023-07-06 23:35, Randy Dunlap wrote: > > HI-- > > > > On 7/6/23 07:27, Marco Pagani wrote: > >> Fix the following warnings issued by the kernel-doc script: > >> > >> drivers/fpga/fpga-bridge.c:99: warning: No description found for return value of 'of_fpga_bridge_get' > >> drivers/fpga/fpga-bridge.c:163: warning: No description found for return value of 'fpga_bridges_enable' > >> drivers/fpga/fpga-bridge.c:187: warning: No description found for return value of 'fpga_bridges_disable' > >> drivers/fpga/fpga-bridge.c:238: warning: No description found for return value of 'of_fpga_bridge_get_to_list' > >> drivers/fpga/fpga-bridge.c:268: warning: No description found for return value of 'fpga_bridge_get_to_list' > >> > >> - Extend the return description of of_fpga_bridge_get() to include the > >> case when try_module_get() fails. > >> > >> Signed-off-by: Marco Pagani <marpagan@redhat.com> > >> --- > >> drivers/fpga/fpga-bridge.c | 23 ++++++++++++----------- > >> 1 file changed, 12 insertions(+), 11 deletions(-) > >> > >> diff --git a/drivers/fpga/fpga-bridge.c b/drivers/fpga/fpga-bridge.c > >> index a6c25dee9cc1..0b76c67c50e5 100644 > >> --- a/drivers/fpga/fpga-bridge.c > >> +++ b/drivers/fpga/fpga-bridge.c > >> @@ -87,12 +87,13 @@ static struct fpga_bridge *__fpga_bridge_get(struct device *dev, > >> /** > >> * of_fpga_bridge_get - get an exclusive reference to an fpga bridge > >> * > >> - * @np: node pointer of an FPGA bridge > >> - * @info: fpga image specific information > >> + * @np: node pointer of an FPGA bridge. > >> + * @info: fpga image specific information. > > > > Those are not sentences. There is no reason that a period ('.') is needed > > to end those lines. OTOH, the maintainers can do as they like with it. > > > > The rest looks good. Thanks. > > > > Reviewed-by: Randy Dunlap <rdunlap@infradead.org> > > I added a period at the end of each argument description to follow > the style recommended in the "Function documentation" section of the > kernel-doc documentation. I'm OK with them. Acked-by: Xu Yilun <yilun.xu@intel.com> Applied. > > Thanks, > Marco > > [...] >
diff --git a/drivers/fpga/fpga-bridge.c b/drivers/fpga/fpga-bridge.c index a6c25dee9cc1..0b76c67c50e5 100644 --- a/drivers/fpga/fpga-bridge.c +++ b/drivers/fpga/fpga-bridge.c @@ -87,12 +87,13 @@ static struct fpga_bridge *__fpga_bridge_get(struct device *dev, /** * of_fpga_bridge_get - get an exclusive reference to an fpga bridge * - * @np: node pointer of an FPGA bridge - * @info: fpga image specific information + * @np: node pointer of an FPGA bridge. + * @info: fpga image specific information. * - * Return fpga_bridge struct if successful. - * Return -EBUSY if someone already has a reference to the bridge. - * Return -ENODEV if @np is not an FPGA Bridge. + * Return: + * * fpga_bridge struct pointer if successful. + * * -EBUSY if someone already has a reference to the bridge. + * * -ENODEV if @np is not an FPGA Bridge or can't take parent driver refcount. */ struct fpga_bridge *of_fpga_bridge_get(struct device_node *np, struct fpga_image_info *info) @@ -155,9 +156,9 @@ EXPORT_SYMBOL_GPL(fpga_bridge_put); * fpga_bridges_enable - enable bridges in a list * @bridge_list: list of FPGA bridges * - * Enable each bridge in the list. If list is empty, do nothing. + * Enable each bridge in the list. If list is empty, do nothing. * - * Return 0 for success or empty bridge list; return error code otherwise. + * Return: 0 for success or empty bridge list or an error code otherwise. */ int fpga_bridges_enable(struct list_head *bridge_list) { @@ -179,9 +180,9 @@ EXPORT_SYMBOL_GPL(fpga_bridges_enable); * * @bridge_list: list of FPGA bridges * - * Disable each bridge in the list. If list is empty, do nothing. + * Disable each bridge in the list. If list is empty, do nothing. * - * Return 0 for success or empty bridge list; return error code otherwise. + * Return: 0 for success or empty bridge list or an error code otherwise. */ int fpga_bridges_disable(struct list_head *bridge_list) { @@ -230,7 +231,7 @@ EXPORT_SYMBOL_GPL(fpga_bridges_put); * * Get an exclusive reference to the bridge and it to the list. * - * Return 0 for success, error code from of_fpga_bridge_get() otherwise. + * Return: 0 for success, error code from of_fpga_bridge_get() otherwise. */ int of_fpga_bridge_get_to_list(struct device_node *np, struct fpga_image_info *info, @@ -260,7 +261,7 @@ EXPORT_SYMBOL_GPL(of_fpga_bridge_get_to_list); * * Get an exclusive reference to the bridge and it to the list. * - * Return 0 for success, error code from fpga_bridge_get() otherwise. + * Return: 0 for success, error code from fpga_bridge_get() otherwise. */ int fpga_bridge_get_to_list(struct device *dev, struct fpga_image_info *info,