From: Matti Vaittinen <mazziesaccount@gmail.com>
To: Chen-Yu Tsai <wenst@chromium.org>,
Mark Brown <broonie@kernel.org>,
Liam Girdwood <lgirdwood@gmail.com>
Cc: linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Subject: Re: [PATCH 8/8] regulator: irq_helpers: Add missing "Return" kerneldoc section
Date: Wed, 28 Aug 2024 08:55:54 +0300 [thread overview]
Message-ID: <e341240e-1c1f-49a2-91cd-440888fdbda0@gmail.com> (raw)
In-Reply-To: <20240827095550.675018-9-wenst@chromium.org>
On 8/27/24 12:55, Chen-Yu Tsai wrote:
> kernel-doc complains about missing "Return" section for the function
> regulator_irq_map_event_simple().
>
> Add a "Return" section for it based on its behavior.
>
> Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Thank You for improving this! I appreciate it :)
> ---
> drivers/regulator/irq_helpers.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/drivers/regulator/irq_helpers.c b/drivers/regulator/irq_helpers.c
> index 5ab1a0befe12..5803ef016b7d 100644
> --- a/drivers/regulator/irq_helpers.c
> +++ b/drivers/regulator/irq_helpers.c
> @@ -414,6 +414,10 @@ EXPORT_SYMBOL_GPL(regulator_irq_helper_cancel);
> * notification helperk. Exactly one rdev and exactly one error (in
I just noticed (an existing) typo "helperk". I wonder if it was Ok to
fix it while anyways changing the doc. It's not strictly speaking
related to the return values though :)
> * "common_errs"-field) can be given at IRQ helper registration for
> * regulator_irq_map_event_simple() to be viable.
> + *
> + * Return: 0
> + *
Anyways, I agree with Andy about not needing the blank line here - but
other than that:
Reviewed-by: Matti Vaittinen <mazziesaccount@gmail.com>
> + * Actual regulator error and notification are passed back through @rid.
> */
> int regulator_irq_map_event_simple(int irq, struct regulator_irq_data *rid,
> unsigned long *dev_mask)
--
Matti Vaittinen
Linux kernel developer at ROHM Semiconductors
Oulu Finland
~~ When things go utterly wrong vim users can always type :help! ~~
next prev parent reply other threads:[~2024-08-28 5:57 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-27 9:55 [PATCH 0/8] regulator: kerneldoc section fixes Chen-Yu Tsai
2024-08-27 9:55 ` [PATCH 1/8] regulator: core: Fix short description for _regulator_check_status_enabled() Chen-Yu Tsai
2024-08-27 9:55 ` [PATCH 2/8] regulator: core: Fix regulator_is_supported_voltage() kerneldoc return value Chen-Yu Tsai
2024-08-27 14:35 ` Andy Shevchenko
2024-08-28 7:59 ` Chen-Yu Tsai
2024-08-27 9:55 ` [PATCH 3/8] regulator: core: Fix incorrectly formatted kerneldoc "Return" sections Chen-Yu Tsai
2024-08-27 14:41 ` Andy Shevchenko
2024-08-28 8:01 ` Chen-Yu Tsai
2024-08-28 20:29 ` Mark Brown
2024-08-27 9:55 ` [PATCH 4/8] regulator: core: Add missing kerneldoc Return sections Chen-Yu Tsai
2024-08-27 9:55 ` [PATCH 5/8] regulator: of: Fix incorrectly formatted kerneldoc "Return" sections Chen-Yu Tsai
2024-08-27 9:55 ` [PATCH 6/8] regulator: fixed: Fix incorrectly formatted kerneldoc "Return" section Chen-Yu Tsai
2024-08-27 14:43 ` Andy Shevchenko
2024-08-27 9:55 ` [PATCH 7/8] regulator: fixed-helper: Add missing "Return" kerneldoc section Chen-Yu Tsai
2024-08-27 14:43 ` Andy Shevchenko
2024-08-27 9:55 ` [PATCH 8/8] regulator: irq_helpers: " Chen-Yu Tsai
2024-08-27 14:44 ` Andy Shevchenko
2024-08-28 7:50 ` Chen-Yu Tsai
2024-08-28 13:53 ` Andy Shevchenko
2024-08-28 5:55 ` Matti Vaittinen [this message]
2024-08-28 7:53 ` Chen-Yu Tsai
2024-08-28 12:03 ` Matti Vaittinen
2024-08-27 14:46 ` [PATCH 0/8] regulator: kerneldoc section fixes Andy Shevchenko
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=e341240e-1c1f-49a2-91cd-440888fdbda0@gmail.com \
--to=mazziesaccount@gmail.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=wenst@chromium.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;
as well as URLs for NNTP newsgroup(s).