From: <mike.looijmans@topic.nl>
To: Su Hui <suhui@nfschina.com>, mturquette@baylibre.com, sboyd@kernel.org
Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org,
kernel-janitors@vger.kernel.org
Subject: Re: [PATCH] clk: si5341: fix an error code problem in si5341_output_clk_set_rate
Date: Tue, 31 Oct 2023 13:27:21 +0100 [thread overview]
Message-ID: <b5b3abbd-1551-34ac-65b4-4fb14e24d3f2@topic.nl> (raw)
In-Reply-To: <20231031020159.587686-1-suhui@nfschina.com>
FWIW, you have my gratitude...
Acked-By: Mike Looijmans <mike.looijmans@topic.nl>
One remark, maybe just "return regmap_...." straightaway and skip the
"err = " assignment.
M.
On 31-10-2023 03:02, Su Hui wrote:
> regmap_bulk_write() return zero or negative error code, return 'err'
> rather than '0'.
>
> Fixes: 3044a860fd09 ("clk: Add Si5341/Si5340 driver")
> Signed-off-by: Su Hui <suhui@nfschina.com>
> ---
> drivers/clk/clk-si5341.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/clk/clk-si5341.c b/drivers/clk/clk-si5341.c
> index 9599857842c7..9b1cc5a83b5b 100644
> --- a/drivers/clk/clk-si5341.c
> +++ b/drivers/clk/clk-si5341.c
> @@ -898,7 +898,7 @@ static int si5341_output_clk_set_rate(struct clk_hw *hw, unsigned long rate,
> err = regmap_bulk_write(output->data->regmap,
> SI5341_OUT_R_REG(output), r, 3);
>
> - return 0;
> + return err;
> }
>
> static int si5341_output_reparent(struct clk_si5341_output *output, u8 index)
--
Mike Looijmans
System Expert
TOPIC Embedded Products B.V.
Materiaalweg 4, 5681 RJ Best
The Netherlands
T: +31 (0) 499 33 69 69
E: mike.looijmans@topic.nl
W: www.topic.nl
prev parent reply other threads:[~2023-10-31 12:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-31 2:02 Su Hui
2023-10-31 12:27 ` mike.looijmans [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=b5b3abbd-1551-34ac-65b4-4fb14e24d3f2@topic.nl \
--to=mike.looijmans@topic.nl \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=sboyd@kernel.org \
--cc=suhui@nfschina.com \
/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
all inboxes | Powered by JetHome®