mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
gpio: stm32_gpio: Fix warnings when compiling with W=1
This patch solves the following warnings: drivers/gpio/stm32_gpio.c: In function 'stm32_offset_to_index': : comparison between signed and unsigned integer expressions [-Wsign-compare] if (idx == offset) ^~ Signed-off-by: Patrice Chotard <patrice.chotard@st.com> Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
This commit is contained in:
parent
c0d7f1fbad
commit
99e14b2793
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@
|
|||
int stm32_offset_to_index(struct udevice *dev, unsigned int offset)
|
||||
{
|
||||
struct stm32_gpio_priv *priv = dev_get_priv(dev);
|
||||
int idx = 0;
|
||||
unsigned int idx = 0;
|
||||
int i;
|
||||
|
||||
for (i = 0; i < STM32_GPIOS_PER_BANK; i++) {
|
||||
|
|
Loading…
Reference in a new issue