[U-Boot] [PATCH 06/20] adc: stm32-adc: 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/adc/stm32-adc.c: In function 'stm32_adc_chan_of_init':
> warning: comparison between signed and unsigned integer expressions [-Wsign-
> compare]
>   if (num_channels > adc->cfg->max_channels) {
>                    ^
> Signed-off-by: Patrice Chotard <patrice.chotard at st.com>
> 
> Signed-off-by: Patrick Delaunay <patrick.delaunay at st.com>
> ---
> 
>  drivers/adc/stm32-adc.c | 13 +++++++------
>  1 file changed, 7 insertions(+), 6 deletions(-)
> 


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

Patrick



More information about the U-Boot mailing list