summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2023-01-12 06:21:42 +0100
committerElyes Haouas <ehaouas@noos.fr>2023-01-17 04:23:49 +0000
commit24769421cd1df4f58a8addce16ff9c46080ba1ba (patch)
treef88a0af9a0ee4b367f4891bf34ce3f1a8b25ab0c /src/mainboard
parent4d661eebe95b06acae7d99777ed36ba56a560112 (diff)
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 <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/71841 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/google/drallion/variants/drallion/include/variant/variant.h2
-rw-r--r--src/mainboard/sifive/hifive-unleashed/media.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mainboard/google/drallion/variants/drallion/include/variant/variant.h b/src/mainboard/google/drallion/variants/drallion/include/variant/variant.h
index c61a06319a..8d641aff68 100644
--- a/src/mainboard/google/drallion/variants/drallion/include/variant/variant.h
+++ b/src/mainboard/google/drallion/variants/drallion/include/variant/variant.h
@@ -12,7 +12,7 @@ typedef struct {
const char *name;
} sku_info;
-const static sku_info skus[] = {
+static const sku_info skus[] = {
// Drallion 360
{ .id = 1, .name = "sku1" },
// Drallion
diff --git a/src/mainboard/sifive/hifive-unleashed/media.c b/src/mainboard/sifive/hifive-unleashed/media.c
index f3dcf7f621..a225dda9e9 100644
--- a/src/mainboard/sifive/hifive-unleashed/media.c
+++ b/src/mainboard/sifive/hifive-unleashed/media.c
@@ -56,7 +56,7 @@ const struct region_device *boot_device_ro(void)
return NULL;
}
-const static struct fu540_spi_mmap_config spi_mmap_config = {
+static const struct fu540_spi_mmap_config spi_mmap_config = {
.cmd_en = 1,
.addr_len = 4,
.pad_cnt = 6,