summaryrefslogtreecommitdiffstats
path: root/src/soc/amd/common/block/gpio_banks
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2021-07-30 03:09:25 +0200
committerFelix Held <felix-coreboot@felixheld.de>2021-07-31 01:28:22 +0000
commit75196bf6bba65c10fb37e528046d693d605f2fe9 (patch)
tree3972f1188b4c44ec0ea58082423a8798effe4480 /src/soc/amd/common/block/gpio_banks
parent6c0ff7a7f14366650790831ffcffa87bd408157b (diff)
downloadcoreboot-75196bf6bba65c10fb37e528046d693d605f2fe9.tar.gz
coreboot-75196bf6bba65c10fb37e528046d693d605f2fe9.tar.bz2
coreboot-75196bf6bba65c10fb37e528046d693d605f2fe9.zip
soc/amd/common/block/gpio_banks/gpio: use size_t where needed
Since the parameter the variable gets compared with is size_t type, use size_t as type for that variable too. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: If82a948bf71079d456616f4438f4b754e0d7262d Reviewed-on: https://review.coreboot.org/c/coreboot/+/56702 Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/amd/common/block/gpio_banks')
-rw-r--r--src/soc/amd/common/block/gpio_banks/gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/amd/common/block/gpio_banks/gpio.c b/src/soc/amd/common/block/gpio_banks/gpio.c
index 108635a340d4..7564aa2159c3 100644
--- a/src/soc/amd/common/block/gpio_banks/gpio.c
+++ b/src/soc/amd/common/block/gpio_banks/gpio.c
@@ -18,7 +18,7 @@
static int get_gpio_gevent(gpio_t gpio, const struct soc_amd_event *table,
size_t items)
{
- int i;
+ size_t i;
for (i = 0; i < items; i++) {
if ((table + i)->gpio == gpio)