[PATCH v4] i2c: busses: Use min() to improve code
Andi Shyti
andi.shyti at kernel.org
Thu Jul 10 13:42:26 PDT 2025
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 at vivo.com>
> Reviewed-by: Patrice Chotard <patrice.chotard at foss.st.com>
> Suggested-by: Jonathan Cameron <Jonathan.Cameron at 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.
Thanks, Jonathan, for the helpful reviews, and thanks to Qianfeng
for promptly following up on the feedback.
Merged to i2c/i2c-host.
Thanks,
Andi
More information about the linux-arm-kernel
mailing list