From 867061191944b86829a0cc981f36682b34c519ac Mon Sep 17 00:00:00 2001 From: Nicholas Sudsgaard Date: Mon, 12 Feb 2024 15:43:31 +0900 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/80422 Tested-by: build bot (Jenkins) Reviewed-by: Arthur Heymans --- src/mainboard/acer/g43t-am3/hda_verb.c | 3 +-- src/mainboard/amd/pademelon/hda_verb.c | 3 +-- src/mainboard/asrock/g41c-gs/hda_verb.c | 3 +-- src/mainboard/asus/p5qc/hda_verb.c | 3 +-- src/mainboard/asus/p5ql-em/hda_verb.c | 3 +-- src/mainboard/asus/p5qpl-am/hda_verb.c | 3 +-- src/mainboard/foxconn/g41s-k/hda_verb.c | 3 +-- src/mainboard/gigabyte/ga-g41m-es2l/hda_verb.c | 3 +-- src/mainboard/intel/dg41wv/hda_verb.c | 3 +-- src/mainboard/intel/dg43gt/hda_verb.c | 3 +-- src/mainboard/lenovo/thinkcentre_a58/hda_verb.c | 3 +-- 11 files changed, 11 insertions(+), 22 deletions(-) (limited to 'src') 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; -- cgit v1.2.3