From: Markus Schneider-Pargmann <msp@baylibre.com>
To: Stephen Boyd <sboyd@kernel.org>
Cc: Russell King <linux@armlinux.org.uk>, linux-clk@vger.kernel.org
Subject: Re: [PATCH] clk: Fix *bulk_get* return value documentation
Date: Tue, 17 Aug 2021 09:26:47 +0200 [thread overview]
Message-ID: <20210817072647.55funsorbowf544b@blmsp> (raw)
In-Reply-To: <162879633884.19113.18202513608808069954@swboyd.mtv.corp.google.com>
Hi Stephen,
On Thu, Aug 12, 2021 at 12:25:38PM -0700, Stephen Boyd wrote:
> Quoting Markus Schneider-Pargmann (2021-08-11 00:57:19)
> > Some of the bulk_get variants document that the return value is a valid
> > IS_ERR() condition but it is not. These functions return an errno
> > directly if an error occures.
> >
> > This patch fixes that documentation and documents that the return value
> > is 0 or errno.
> >
> > Signed-off-by: Markus Schneider-Pargmann <msp@baylibre.com>
> > ---
> > include/linux/clk.h | 6 +++---
> > 1 file changed, 3 insertions(+), 3 deletions(-)
> >
> > diff --git a/include/linux/clk.h b/include/linux/clk.h
> > index 266e8de3cb51..56a741903963 100644
> > --- a/include/linux/clk.h
> > +++ b/include/linux/clk.h
> > @@ -340,7 +340,7 @@ struct clk *clk_get(struct device *dev, const char *id);
> > * that were obtained will be freed before returning to the caller.
> > *
> > * Returns 0 if all clocks specified in clk_bulk_data table are obtained
> > - * successfully, or valid IS_ERR() condition containing errno.
> > + * successfully, or an errno otherwise.
> > * The implementation uses @dev and @clk_bulk_data.id to determine the
> > * clock consumer, and thereby the clock producer.
> > * The clock returned is stored in each @clk_bulk_data.clk field.
>
> While you're here can you also use the Return: syntax so it isn't
> freeform and doc generation can split it out?
thanks, good idea. Will do that.
Best,
Markus
prev parent reply other threads:[~2021-08-17 7:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-11 7:57 [PATCH] clk: Fix *bulk_get* return value documentation Markus Schneider-Pargmann
2021-08-12 19:25 ` Stephen Boyd
2021-08-17 7:26 ` Markus Schneider-Pargmann [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210817072647.55funsorbowf544b@blmsp \
--to=msp@baylibre.com \
--cc=linux-clk@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=sboyd@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox