From 24769421cd1df4f58a8addce16ff9c46080ba1ba Mon Sep 17 00:00:00 2001 From: Elyes Haouas Date: Thu, 12 Jan 2023 06:21:42 +0100 Subject: treewide: Fix old-style declarations Replace old style declaration "const static" with "static const". This to enable "Wold-style-declaration" command option. Change-Id: I757632befed1854f422daaf4dfea58281b16e2f5 Signed-off-by: Elyes Haouas Reviewed-on: https://review.coreboot.org/c/coreboot/+/71841 Tested-by: build bot (Jenkins) Reviewed-by: Eric Lai --- src/soc/amd/phoenix/aoac.c | 2 +- src/soc/amd/phoenix/fch.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/soc/amd/phoenix') diff --git a/src/soc/amd/phoenix/aoac.c b/src/soc/amd/phoenix/aoac.c index ab52544189..d63ca62587 100644 --- a/src/soc/amd/phoenix/aoac.c +++ b/src/soc/amd/phoenix/aoac.c @@ -26,7 +26,7 @@ * * TODO: Find out which I2C controllers we really need to enable here. */ -const static unsigned int aoac_devs[] = { +static const unsigned int aoac_devs[] = { FCH_AOAC_DEV_AMBA, FCH_AOAC_DEV_I2C0, FCH_AOAC_DEV_I2C1, diff --git a/src/soc/amd/phoenix/fch.c b/src/soc/amd/phoenix/fch.c index 7e265338df..91df79e35a 100644 --- a/src/soc/amd/phoenix/fch.c +++ b/src/soc/amd/phoenix/fch.c @@ -24,7 +24,7 @@ * amd_pci_int_defs.h, just add the pair at the end of this table. * Order is not important. */ -const static struct irq_idx_name irq_association[] = { +static const struct irq_idx_name irq_association[] = { { PIRQ_A, "INTA#" }, { PIRQ_B, "INTB#" }, { PIRQ_C, "INTC#" }, -- cgit v1.2.3