diff options
author | Subrata Banik <subratabanik@google.com> | 2022-01-04 19:58:18 +0000 |
---|---|---|
committer | Subrata Banik <subratabanik@google.com> | 2022-01-06 15:19:24 +0000 |
commit | d43d864fc0230858614704d5ce79903ddd6c705a (patch) | |
tree | 4e9068067986128f05d6fc85e0e6a1f7d0c027bd /src/soc/intel | |
parent | 0dc0772118c555766c0cc2643e0a40f30a1b345b (diff) |
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 <subratabanik@google.com>
Change-Id: I15da8a1aff2d81805ba6584f5cc7e569faf456e1
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60773
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: EricR Lai <ericr_lai@compal.corp-partner.google.com>
Diffstat (limited to 'src/soc/intel')
-rw-r--r-- | src/soc/intel/common/block/include/intelblocks/gpio.h | 2 |
1 files changed, 1 insertions, 1 deletions
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,.... */ }; |