From: Jonathan Cameron <Jonathan.Cameron@huawei.com>
To: Andi Shyti <andi.shyti@kernel.org>
Cc: Qianfeng Rong <rongqianfeng@vivo.com>,
<wsa+renesas@sang-engineering.com>,
Patrice Chotard <patrice.chotard@foss.st.com>,
<linux-arm-kernel@lists.infradead.org>,
<linux-i2c@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v4] i2c: busses: Use min() to improve code
Date: Fri, 11 Jul 2025 15:47:17 +0100 [thread overview]
Message-ID: <20250711154717.00000319@huawei.com> (raw)
In-Reply-To: <tinhpctintv5okjfdzljg4q6tnfmmcsohywy4oqxxaqzmti3r7@3otlpzbypemz>
On Thu, 10 Jul 2025 22:42:26 +0200
Andi Shyti <andi.shyti@kernel.org> wrote:
> Hi Qianfeng,
>
> On Wed, Jul 09, 2025 at 12:23:46PM +0800, Qianfeng Rong wrote:
> > Use min() to reduce the code and improve its readability.
> >
> > The type of the max parameter in the st_i2c_rd_fill_tx_fifo()
> > was changed from int to u32, because the max parameter passed
> > in is always greater than 0.
> >
> > Signed-off-by: Qianfeng Rong <rongqianfeng@vivo.com>
> > Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
> > Suggested-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
>
> The 'Suggested-by' tag implies that the patch was suggested by
> Jonathan, which is not the case here. Jonathan reviewed the patch
> and proposed improvements, but the patch itself comes from you.
>
> For this reason, I will remove the 'Suggested-by' tag. If
> Jonathan wants to add his Acked-by or Reviewed-by, I will gladly
> include it.
Trivial enough that I don't care ;) Was a drive by review at
best.
Thanks for asking though.
J
>
> Thanks, Jonathan, for the helpful reviews, and thanks to Qianfeng
> for promptly following up on the feedback.
>
> Merged to i2c/i2c-host.
>
> Thanks,
> Andi
>
next prev parent reply other threads:[~2025-07-11 14:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-09 4:23 [PATCH v4] i2c: busses: Use min() to improve code Qianfeng Rong
2025-07-10 20:42 ` Andi Shyti
2025-07-11 14:47 ` Jonathan Cameron [this message]
2025-07-14 1:51 ` Qianfeng Rong
2025-07-11 18:57 ` Andy Shevchenko
2025-07-12 8:25 ` Andi Shyti
2025-07-14 2:02 ` Qianfeng Rong
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=20250711154717.00000319@huawei.com \
--to=jonathan.cameron@huawei.com \
--cc=andi.shyti@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=patrice.chotard@foss.st.com \
--cc=rongqianfeng@vivo.com \
--cc=wsa+renesas@sang-engineering.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