summaryrefslogtreecommitdiffstats
path: root/src/soc
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2021-07-30 03:07:42 +0200
committerFelix Held <felix-coreboot@felixheld.de>2021-09-08 00:15:59 +0000
commitafa750bf5788fefa58cbfb9783906cf547fc47a8 (patch)
tree5dc07783e1201d0187c9100efcd84d6cbecee7ec /src/soc
parentd0911e94ddd1f0ae383a08a05aa2873129841d98 (diff)
downloadcoreboot-afa750bf5788fefa58cbfb9783906cf547fc47a8.tar.gz
coreboot-afa750bf5788fefa58cbfb9783906cf547fc47a8.tar.bz2
coreboot-afa750bf5788fefa58cbfb9783906cf547fc47a8.zip
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>
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/amd/common/block/gpio_banks/gpio.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/soc/amd/common/block/gpio_banks/gpio.c b/src/soc/amd/common/block/gpio_banks/gpio.c
index 6a88e537ca83..0f9711849747 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;