mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
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>
This commit is contained in:
parent
0fb0365673
commit
c0d7f1fbad
1 changed files with 2 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue