aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/lenovo/t420s/gpio.c
diff options
context:
space:
mode:
authorPeter Lemenkov <lemenkov@gmail.com>2019-10-23 22:07:58 +0200
committerAngel Pons <th3fanbus@gmail.com>2020-04-18 18:57:18 +0000
commit18f888598da2a0cf3458736c3f56b31986f28d29 (patch)
tree0f74b0c7e1850ca469ae23710f239651326bdd58 /src/mainboard/lenovo/t420s/gpio.c
parent75f4776610c7d24d0c48dc48ff2a236ea914a80c (diff)
mb/lenovo/t420(s): Do minor cosmetic changes
Align the whitespace and do some cosmetic changes. This makes it easier to fold these two boards into a variant setup. Change-Id: I53bdd90ae47b52dfdfec27229c6b904487fa2081 Signed-off-by: Peter Lemenkov <lemenkov@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/40380 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/mainboard/lenovo/t420s/gpio.c')
-rw-r--r--src/mainboard/lenovo/t420s/gpio.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mainboard/lenovo/t420s/gpio.c b/src/mainboard/lenovo/t420s/gpio.c
index 0b64efe268..daca020da0 100644
--- a/src/mainboard/lenovo/t420s/gpio.c
+++ b/src/mainboard/lenovo/t420s/gpio.c
@@ -2,6 +2,7 @@
/* This file is part of the coreboot project. */
#include <southbridge/intel/common/gpio.h>
+
static const struct pch_gpio_set1 pch_gpio_set1_mode = {
.gpio0 = GPIO_MODE_GPIO, // -USB30_SMIB - input
.gpio1 = GPIO_MODE_GPIO, // -EC_SCI - input
@@ -69,7 +70,7 @@ static const struct pch_gpio_set1 pch_gpio_set1_direction = {
.gpio28 = GPIO_DIR_OUTPUT,
.gpio29 = GPIO_DIR_OUTPUT,
.gpio30 = GPIO_DIR_OUTPUT,
- .gpio31 = GPIO_DIR_INPUT
+ .gpio31 = GPIO_DIR_INPUT,
};
static const struct pch_gpio_set1 pch_gpio_set1_level = {
@@ -108,8 +109,8 @@ static const struct pch_gpio_set1 pch_gpio_set1_level = {
};
static const struct pch_gpio_set1 pch_gpio_set1_invert = {
- .gpio0 = GPIO_INVERT,
- .gpio1 = GPIO_INVERT,
+ .gpio0 = GPIO_INVERT,
+ .gpio1 = GPIO_INVERT,
.gpio13 = GPIO_INVERT,
};