summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Sudsgaard <devel+coreboot@nsudsgaard.com>2024-02-12 15:43:31 +0900
committerFelix Held <felix-coreboot@felixheld.de>2024-02-13 20:11:24 +0000
commit867061191944b86829a0cc981f36682b34c519ac (patch)
tree23178dfd4400b927e2065884672971c68ffe41d7
parent32ea6bb1f94e3e669389749b596aec860098e08c (diff)
mainboard: Enforce usage of AZALIA_ARRAY_SIZES
This is the de facto method and should be enforced to keep things consistent. Change-Id: I7eee77f7fd49bc38e27cb0e6be0a4a6555098cc7 Signed-off-by: Nicholas Sudsgaard <devel+coreboot@nsudsgaard.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/80422 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
-rw-r--r--src/mainboard/acer/g43t-am3/hda_verb.c3
-rw-r--r--src/mainboard/amd/pademelon/hda_verb.c3
-rw-r--r--src/mainboard/asrock/g41c-gs/hda_verb.c3
-rw-r--r--src/mainboard/asus/p5qc/hda_verb.c3
-rw-r--r--src/mainboard/asus/p5ql-em/hda_verb.c3
-rw-r--r--src/mainboard/asus/p5qpl-am/hda_verb.c3
-rw-r--r--src/mainboard/foxconn/g41s-k/hda_verb.c3
-rw-r--r--src/mainboard/gigabyte/ga-g41m-es2l/hda_verb.c3
-rw-r--r--src/mainboard/intel/dg41wv/hda_verb.c3
-rw-r--r--src/mainboard/intel/dg43gt/hda_verb.c3
-rw-r--r--src/mainboard/lenovo/thinkcentre_a58/hda_verb.c3
11 files changed, 11 insertions, 22 deletions
diff --git a/src/mainboard/acer/g43t-am3/hda_verb.c b/src/mainboard/acer/g43t-am3/hda_verb.c
index 32a9b25874..c01bf3f680 100644
--- a/src/mainboard/acer/g43t-am3/hda_verb.c
+++ b/src/mainboard/acer/g43t-am3/hda_verb.c
@@ -35,5 +35,4 @@ const u32 cim_verb_data[] = {
const u32 pc_beep_verbs[0] = {};
-const u32 pc_beep_verbs_size = ARRAY_SIZE(pc_beep_verbs);
-const u32 cim_verb_data_size = ARRAY_SIZE(cim_verb_data);
+AZALIA_ARRAY_SIZES;
diff --git a/src/mainboard/amd/pademelon/hda_verb.c b/src/mainboard/amd/pademelon/hda_verb.c
index 95758f0a4c..700953675d 100644
--- a/src/mainboard/amd/pademelon/hda_verb.c
+++ b/src/mainboard/amd/pademelon/hda_verb.c
@@ -25,5 +25,4 @@ const u32 cim_verb_data[] = {
const u32 pc_beep_verbs[0] = {};
-const u32 pc_beep_verbs_size = ARRAY_SIZE(pc_beep_verbs);
-const u32 cim_verb_data_size = ARRAY_SIZE(cim_verb_data);
+AZALIA_ARRAY_SIZES;
diff --git a/src/mainboard/asrock/g41c-gs/hda_verb.c b/src/mainboard/asrock/g41c-gs/hda_verb.c
index 2c9f6347c4..5fce4333c8 100644
--- a/src/mainboard/asrock/g41c-gs/hda_verb.c
+++ b/src/mainboard/asrock/g41c-gs/hda_verb.c
@@ -53,5 +53,4 @@ const u32 cim_verb_data[] = {
const u32 pc_beep_verbs[0] = {};
-const u32 pc_beep_verbs_size = ARRAY_SIZE(pc_beep_verbs);
-const u32 cim_verb_data_size = ARRAY_SIZE(cim_verb_data);
+AZALIA_ARRAY_SIZES;
diff --git a/src/mainboard/asus/p5qc/hda_verb.c b/src/mainboard/asus/p5qc/hda_verb.c
index d2c0410960..289443a24d 100644
--- a/src/mainboard/asus/p5qc/hda_verb.c
+++ b/src/mainboard/asus/p5qc/hda_verb.c
@@ -27,5 +27,4 @@ const u32 cim_verb_data[] = {
const u32 pc_beep_verbs[0] = {};
-const u32 pc_beep_verbs_size = ARRAY_SIZE(pc_beep_verbs);
-const u32 cim_verb_data_size = ARRAY_SIZE(cim_verb_data);
+AZALIA_ARRAY_SIZES;
diff --git a/src/mainboard/asus/p5ql-em/hda_verb.c b/src/mainboard/asus/p5ql-em/hda_verb.c
index d1b1178d20..984e583d41 100644
--- a/src/mainboard/asus/p5ql-em/hda_verb.c
+++ b/src/mainboard/asus/p5ql-em/hda_verb.c
@@ -33,5 +33,4 @@ const u32 cim_verb_data[] = {
const u32 pc_beep_verbs[0] = {};
-const u32 pc_beep_verbs_size = ARRAY_SIZE(pc_beep_verbs);
-const u32 cim_verb_data_size = ARRAY_SIZE(cim_verb_data);
+AZALIA_ARRAY_SIZES;
diff --git a/src/mainboard/asus/p5qpl-am/hda_verb.c b/src/mainboard/asus/p5qpl-am/hda_verb.c
index 6c8497da03..81f55bf16c 100644
--- a/src/mainboard/asus/p5qpl-am/hda_verb.c
+++ b/src/mainboard/asus/p5qpl-am/hda_verb.c
@@ -29,5 +29,4 @@ const u32 cim_verb_data[] = {
const u32 pc_beep_verbs[0] = {};
-const u32 pc_beep_verbs_size = ARRAY_SIZE(pc_beep_verbs);
-const u32 cim_verb_data_size = ARRAY_SIZE(cim_verb_data);
+AZALIA_ARRAY_SIZES;
diff --git a/src/mainboard/foxconn/g41s-k/hda_verb.c b/src/mainboard/foxconn/g41s-k/hda_verb.c
index 30f36099a9..aedbc5d1b7 100644
--- a/src/mainboard/foxconn/g41s-k/hda_verb.c
+++ b/src/mainboard/foxconn/g41s-k/hda_verb.c
@@ -54,5 +54,4 @@ const u32 cim_verb_data[] = {
const u32 pc_beep_verbs[0] = {};
-const u32 pc_beep_verbs_size = ARRAY_SIZE(pc_beep_verbs);
-const u32 cim_verb_data_size = ARRAY_SIZE(cim_verb_data);
+AZALIA_ARRAY_SIZES;
diff --git a/src/mainboard/gigabyte/ga-g41m-es2l/hda_verb.c b/src/mainboard/gigabyte/ga-g41m-es2l/hda_verb.c
index 75a08640a5..a867258b22 100644
--- a/src/mainboard/gigabyte/ga-g41m-es2l/hda_verb.c
+++ b/src/mainboard/gigabyte/ga-g41m-es2l/hda_verb.c
@@ -28,5 +28,4 @@ const u32 cim_verb_data[] = {
const u32 pc_beep_verbs[0] = {};
-const u32 pc_beep_verbs_size = ARRAY_SIZE(pc_beep_verbs);
-const u32 cim_verb_data_size = ARRAY_SIZE(cim_verb_data);
+AZALIA_ARRAY_SIZES;
diff --git a/src/mainboard/intel/dg41wv/hda_verb.c b/src/mainboard/intel/dg41wv/hda_verb.c
index 95758f0a4c..700953675d 100644
--- a/src/mainboard/intel/dg41wv/hda_verb.c
+++ b/src/mainboard/intel/dg41wv/hda_verb.c
@@ -25,5 +25,4 @@ const u32 cim_verb_data[] = {
const u32 pc_beep_verbs[0] = {};
-const u32 pc_beep_verbs_size = ARRAY_SIZE(pc_beep_verbs);
-const u32 cim_verb_data_size = ARRAY_SIZE(cim_verb_data);
+AZALIA_ARRAY_SIZES;
diff --git a/src/mainboard/intel/dg43gt/hda_verb.c b/src/mainboard/intel/dg43gt/hda_verb.c
index d61e6edea3..235ed28542 100644
--- a/src/mainboard/intel/dg43gt/hda_verb.c
+++ b/src/mainboard/intel/dg43gt/hda_verb.c
@@ -35,5 +35,4 @@ const u32 cim_verb_data[] = {
const u32 pc_beep_verbs[0] = {};
-const u32 pc_beep_verbs_size = ARRAY_SIZE(pc_beep_verbs);
-const u32 cim_verb_data_size = ARRAY_SIZE(cim_verb_data);
+AZALIA_ARRAY_SIZES;
diff --git a/src/mainboard/lenovo/thinkcentre_a58/hda_verb.c b/src/mainboard/lenovo/thinkcentre_a58/hda_verb.c
index c0483e78dc..c1cf92baa4 100644
--- a/src/mainboard/lenovo/thinkcentre_a58/hda_verb.c
+++ b/src/mainboard/lenovo/thinkcentre_a58/hda_verb.c
@@ -25,5 +25,4 @@ const u32 cim_verb_data[] = {
const u32 pc_beep_verbs[0] = {};
-const u32 pc_beep_verbs_size = ARRAY_SIZE(pc_beep_verbs);
-const u32 cim_verb_data_size = ARRAY_SIZE(cim_verb_data);
+AZALIA_ARRAY_SIZES;