From afa750bf5788fefa58cbfb9783906cf547fc47a8 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Fri, 30 Jul 2021 03:07:42 +0200 Subject: soc/amd/common/block/gpio_banks/gpio: use unsigned types where needed Use unsigned integers for variables that aren't supposed to become negative. Signed-off-by: Felix Held Change-Id: I5ee037221b9818b0474fe0376323e522c1b3b516 Reviewed-on: https://review.coreboot.org/c/coreboot/+/56701 Tested-by: build bot (Jenkins) Reviewed-by: Marshall Dawson --- src/soc/amd/common/block/gpio_banks/gpio.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/soc') diff --git a/src/soc/amd/common/block/gpio_banks/gpio.c b/src/soc/amd/common/block/gpio_banks/gpio.c index 6a88e537ca..0f97118497 100644 --- a/src/soc/amd/common/block/gpio_banks/gpio.c +++ b/src/soc/amd/common/block/gpio_banks/gpio.c @@ -334,10 +334,10 @@ static void check_and_add_wake_gpio(gpio_t begin, gpio_t end, struct gpio_wake_s } } -static void check_gpios(uint32_t wake_stat, int bit_limit, gpio_t gpio_base, +static void check_gpios(uint32_t wake_stat, unsigned int bit_limit, gpio_t gpio_base, struct gpio_wake_state *state) { - int i; + unsigned int i; gpio_t begin; gpio_t end; @@ -378,8 +378,8 @@ void gpio_add_events(void) { const struct chipset_power_state *ps; const struct gpio_wake_state *state; - int i; - int end; + unsigned int i; + unsigned int end; if (acpi_pm_state_for_elog(&ps) < 0) return; -- cgit v1.2.3