summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSubrata Banik <subratabanik@google.com>2022-01-04 19:49:24 +0000
committerSubrata Banik <subratabanik@google.com>2022-01-06 15:19:13 +0000
commit0dc0772118c555766c0cc2643e0a40f30a1b345b (patch)
treec52e36f5431eb22bfa853545c0ea57f8684df0f4
parent90c6cff159ee48969964e2c47031548dec2c223c (diff)
downloadcoreboot-0dc0772118c555766c0cc2643e0a40f30a1b345b.tar.gz
coreboot-0dc0772118c555766c0cc2643e0a40f30a1b345b.tar.bz2
coreboot-0dc0772118c555766c0cc2643e0a40f30a1b345b.zip
soc/intel/common/gpio: Rename struct gpio_lock_config.gpio to .pad
This patch renames struct gpio_lock_config variable `gpio` to `pad`, to represent the pad offset within the GPIO community. Signed-off-by: Subrata Banik <subratabanik@google.com> Change-Id: I6bed99c401435c96c9543f99406a934d7141c575 Reviewed-on: https://review.coreboot.org/c/coreboot/+/60772 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: EricR Lai <ericr_lai@compal.corp-partner.google.com>
-rw-r--r--src/soc/intel/common/block/gpio/gpio.c4
-rw-r--r--src/soc/intel/common/block/include/intelblocks/gpio.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/soc/intel/common/block/gpio/gpio.c b/src/soc/intel/common/block/gpio/gpio.c
index ce23a2eedce1..419c77ea48e7 100644
--- a/src/soc/intel/common/block/gpio/gpio.c
+++ b/src/soc/intel/common/block/gpio/gpio.c
@@ -500,7 +500,7 @@ int gpio_lock_pads(const struct gpio_lock_config *pad_list, const size_t count)
for (int x = 0; x < count; x++) {
int err;
- pad = pad_list[x].gpio;
+ pad = pad_list[x].pad;
action = pad_list[x].action;
if (!(action & GPIO_LOCK_FULL)) {
@@ -555,7 +555,7 @@ int gpio_lock_pads(const struct gpio_lock_config *pad_list, const size_t count)
int gpio_lock_pad(const gpio_t pad, enum gpio_lock_action action)
{
const struct gpio_lock_config pads = {
- .gpio = pad,
+ .pad = pad,
.action = action
};
diff --git a/src/soc/intel/common/block/include/intelblocks/gpio.h b/src/soc/intel/common/block/include/intelblocks/gpio.h
index 91f9abe4581d..995c786bbdbf 100644
--- a/src/soc/intel/common/block/include/intelblocks/gpio.h
+++ b/src/soc/intel/common/block/include/intelblocks/gpio.h
@@ -206,7 +206,7 @@ enum gpio_lock_action {
};
struct gpio_lock_config {
- gpio_t gpio;
+ gpio_t pad;
enum gpio_lock_action action;
};