diff --git a/src/soc/intel/common/block/gpio/gpio.c b/src/soc/intel/common/block/gpio/gpio.c index ce23a2eedc..419c77ea48 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 91f9abe458..995c786bbd 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; };