From d43d864fc0230858614704d5ce79903ddd6c705a Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Tue, 4 Jan 2022 19:58:18 +0000 Subject: [PATCH] soc/intel/common/gpio: Modify pad_config.pad type from `int` to 'gpio_t' This patch modifies struct pad_config.pad type from `int` to 'gpio_t' as pad offset inside GPIO community is unsigned type and also to maintain parity with `struct gpio_lock_config.pad` type. Signed-off-by: Subrata Banik Change-Id: I15da8a1aff2d81805ba6584f5cc7e569faf456e1 Reviewed-on: https://review.coreboot.org/c/coreboot/+/60773 Tested-by: build bot (Jenkins) Reviewed-by: EricR Lai --- src/soc/intel/common/block/include/intelblocks/gpio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/soc/intel/common/block/include/intelblocks/gpio.h b/src/soc/intel/common/block/include/intelblocks/gpio.h index 995c786bbd..700b975cf9 100644 --- a/src/soc/intel/common/block/include/intelblocks/gpio.h +++ b/src/soc/intel/common/block/include/intelblocks/gpio.h @@ -66,7 +66,7 @@ typedef uint32_t gpio_t; struct pad_config { - int pad;/* offset of pad within community */ + gpio_t pad;/* offset of pad within community */ uint32_t pad_config[GPIO_NUM_PAD_CFG_REGS];/* Pad config data corresponding to DW0, DW1,.... */ };