From: Patrick DELAUNAY Date: Fri, 12 Jul 2019 14:01:19 +0000 Subject: [U-Boot] [PATCH 09/20] i2c: stm32f7_i2c: Fix warnings when compiling with W=1 In-Reply-To: <1561123618-2029-9-git-send-email-patrick.delaunay@st.com> References: <1561123618-2029-1-git-send-email-patrick.delaunay@st.com> <1561123618-2029-9-git-send-email-patrick.delaunay@st.com> Message-ID: <084848a939b346c0b36995c4e01e9c75@SFHDAG6NODE3.st.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi, > From: Patrick DELAUNAY > 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 > > Signed-off-by: Patrick Delaunay > --- > > drivers/i2c/stm32f7_i2c.c | 12 +++++++----- > 1 file changed, 7 insertions(+), 5 deletions(-) > Applied to u-boot-stm32/master, thanks! Patrick