[U-Boot] [PATCH 09/20] i2c: stm32f7_i2c: Fix warnings when compiling with W=1

Patrick DELAUNAY patrick.delaunay at st.com
Fri Jul 12 14:01:19 UTC 2019


Hi,

> From: Patrick DELAUNAY <patrick.delaunay at st.com>
> Sent: vendredi 21 juin 2019 15:27
> 
> This patch solves the following warnings:
> 
> drivers/i2c/stm32f7_i2c.c: In function 'stm32_i2c_compute_solutions':
> warning: comparison between signed and unsigned integer expressions [-Wsign-
> compare]
>     if (scldel < scldel_min)
>                ^
> warning: comparison between signed and unsigned integer expressions [-Wsign-
> compare]
>      if (((sdadel >= sdadel_min) &&
>                   ^~
> warning: comparison between signed and unsigned integer expressions [-Wsign-
> compare]
>           (sdadel <= sdadel_max)) &&
>                   ^~
> drivers/i2c/stm32f7_i2c.c: In function 'stm32_i2c_choose_solution':
> warning: comparison between signed and unsigned integer expressions [-Wsign-
> compare]
>       if (clk_error < clk_error_prev) {
>                     ^
> Signed-off-by: Patrice Chotard <patrice.chotard at st.com>
> 
> Signed-off-by: Patrick Delaunay <patrick.delaunay at st.com>
> ---
> 
>  drivers/i2c/stm32f7_i2c.c | 12 +++++++-----
>  1 file changed, 7 insertions(+), 5 deletions(-)
> 

Applied to u-boot-stm32/master, thanks!

Patrick


More information about the U-Boot mailing list