diff options
author | Patrick Delaunay <patrick.delaunay@st.com> | 2019-06-21 15:26:45 +0200 |
---|---|---|
committer | Patrick Delaunay <patrick.delaunay@st.com> | 2019-07-12 11:50:55 +0200 |
commit | c0d7f1fbade233703c1a06addfb4e742914917a4 (patch) | |
tree | e61a44a74c659874bf3e3e151dcada0126c96ba9 /drivers/adc | |
parent | 0fb03656730a58fc79831c8bcc852bc9f628b960 (diff) | |
download | u-boot-c0d7f1fbade233703c1a06addfb4e742914917a4.tar.gz |
adc: stm32: Fix warnings when compiling with W=1
This patch solves the following warnings:
drivers/adc/stm32-adc-core.c: In function 'stm32h7_adc_clk_sel':
warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < ARRAY_SIZE(stm32h7_adc_ckmodes_spec); i++) {
^
warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < ARRAY_SIZE(stm32h7_adc_ckmodes_spec); i++) {
^
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Acked-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Diffstat (limited to 'drivers/adc')
-rw-r--r-- | drivers/adc/stm32-adc-core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/adc/stm32-adc-core.c b/drivers/adc/stm32-adc-core.c index a9aa143bfe..04b6a8a2f5 100644 --- a/drivers/adc/stm32-adc-core.c +++ b/drivers/adc/stm32-adc-core.c @@ -60,7 +60,8 @@ static int stm32h7_adc_clk_sel(struct udevice *dev, { u32 ckmode, presc; unsigned long rate; - int i, div; + unsigned int i; + int div; /* stm32h7 bus clock is common for all ADC instances (mandatory) */ if (!clk_valid(&common->bclk)) { |