From 6752b61514609efd55e7d248b7c3c7127ee43693 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Sat, 15 Jun 2019 21:39:32 +0200 Subject: mb/*/*/gpio: Use static for const structures Autoport generates these structures as static so let's make it consistent. See also commit 128205fd with Change-Id I83382d38a4a3b7ed11b8e7077cc5fbe154e261a7 ("autoport/bd82x6x.go: Improve gpio.c generation"). Change-Id: I4e07bd755ca4a65b76c69625d235a879fe7b43cb Signed-off-by: Peter Lemenkov Reviewed-on: https://review.coreboot.org/c/coreboot/+/33524 Reviewed-by: Paul Menzel Reviewed-by: HAOUAS Elyes Tested-by: build bot (Jenkins) --- src/mainboard/sapphire/pureplatinumh61/gpio.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/mainboard/sapphire/pureplatinumh61') diff --git a/src/mainboard/sapphire/pureplatinumh61/gpio.c b/src/mainboard/sapphire/pureplatinumh61/gpio.c index 5dbb223bfc..b58e0edca4 100644 --- a/src/mainboard/sapphire/pureplatinumh61/gpio.c +++ b/src/mainboard/sapphire/pureplatinumh61/gpio.c @@ -89,7 +89,7 @@ static const struct pch_gpio_set1 pch_gpio_set1_invert = { .gpio29 = GPIO_NO_INVERT, }; -const struct pch_gpio_set1 pch_gpio_set1_reset = { +static const struct pch_gpio_set1 pch_gpio_set1_reset = { .gpio6 = GPIO_RESET_PWROK, .gpio7 = GPIO_RESET_PWROK, .gpio8 = GPIO_RESET_PWROK, @@ -135,7 +135,7 @@ static const struct pch_gpio_set2 pch_gpio_set2_level = { .gpio60 = GPIO_LEVEL_HIGH, }; -const struct pch_gpio_set2 pch_gpio_set2_reset = { +static const struct pch_gpio_set2 pch_gpio_set2_reset = { .gpio35 = GPIO_RESET_PWROK, .gpio37 = GPIO_RESET_PWROK, .gpio38 = GPIO_RESET_PWROK, @@ -144,22 +144,22 @@ const struct pch_gpio_set2 pch_gpio_set2_reset = { .gpio60 = GPIO_RESET_PWROK, }; -const struct pch_gpio_set3 pch_gpio_set3_mode = { +static const struct pch_gpio_set3 pch_gpio_set3_mode = { .gpio68 = GPIO_MODE_GPIO, .gpio69 = GPIO_MODE_GPIO, .gpio72 = GPIO_MODE_GPIO, }; -const struct pch_gpio_set3 pch_gpio_set3_direction = { +static const struct pch_gpio_set3 pch_gpio_set3_direction = { .gpio68 = GPIO_DIR_INPUT, .gpio69 = GPIO_DIR_INPUT, .gpio72 = GPIO_DIR_INPUT, }; -const struct pch_gpio_set3 pch_gpio_set3_level = { +static const struct pch_gpio_set3 pch_gpio_set3_level = { }; -const struct pch_gpio_set3 pch_gpio_set3_reset = { +static const struct pch_gpio_set3 pch_gpio_set3_reset = { .gpio68 = GPIO_RESET_PWROK, .gpio69 = GPIO_RESET_PWROK, .gpio72 = GPIO_RESET_PWROK, -- cgit v1.2.3