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 <felix-coreboot@felixheld.de>
Change-Id: I5ee037221b9818b0474fe0376323e522c1b3b516
Reviewed-on: https://review.coreboot.org/c/coreboot/+/56701
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
This commit is contained in:
Felix Held 2021-07-30 03:07:42 +02:00
parent d0911e94dd
commit afa750bf57
1 changed files with 4 additions and 4 deletions

View File

@ -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) struct gpio_wake_state *state)
{ {
int i; unsigned int i;
gpio_t begin; gpio_t begin;
gpio_t end; gpio_t end;
@ -378,8 +378,8 @@ void gpio_add_events(void)
{ {
const struct chipset_power_state *ps; const struct chipset_power_state *ps;
const struct gpio_wake_state *state; const struct gpio_wake_state *state;
int i; unsigned int i;
int end; unsigned int end;
if (acpi_pm_state_for_elog(&ps) < 0) if (acpi_pm_state_for_elog(&ps) < 0)
return; return;