Felix Held has submitted this change. ( https://review.coreboot.org/c/coreboot/+/80422?usp=email )
Change subject: mainboard: Enforce usage of AZALIA_ARRAY_SIZES ......................................................................
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 --- M src/mainboard/acer/g43t-am3/hda_verb.c M src/mainboard/amd/pademelon/hda_verb.c M src/mainboard/asrock/g41c-gs/hda_verb.c M src/mainboard/asus/p5qc/hda_verb.c M src/mainboard/asus/p5ql-em/hda_verb.c M src/mainboard/asus/p5qpl-am/hda_verb.c M src/mainboard/foxconn/g41s-k/hda_verb.c M src/mainboard/gigabyte/ga-g41m-es2l/hda_verb.c M src/mainboard/intel/dg41wv/hda_verb.c M src/mainboard/intel/dg43gt/hda_verb.c M src/mainboard/lenovo/thinkcentre_a58/hda_verb.c 11 files changed, 11 insertions(+), 22 deletions(-)
Approvals: build bot (Jenkins): Verified Arthur Heymans: Looks good to me, approved
diff --git a/src/mainboard/acer/g43t-am3/hda_verb.c b/src/mainboard/acer/g43t-am3/hda_verb.c index 32a9b25..c01bf3f 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 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 95758f0..7009536 100644 --- a/src/mainboard/amd/pademelon/hda_verb.c +++ b/src/mainboard/amd/pademelon/hda_verb.c @@ -25,5 +25,4 @@
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 2c9f634..5fce433 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 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 d2c0410..289443a 100644 --- a/src/mainboard/asus/p5qc/hda_verb.c +++ b/src/mainboard/asus/p5qc/hda_verb.c @@ -27,5 +27,4 @@
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 d1b1178..984e583 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 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 6c8497d..81f55bf 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 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 30f3609..aedbc5d 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 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 75a0864..a867258 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 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 95758f0..7009536 100644 --- a/src/mainboard/intel/dg41wv/hda_verb.c +++ b/src/mainboard/intel/dg41wv/hda_verb.c @@ -25,5 +25,4 @@
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 d61e6ed..235ed28 100644 --- a/src/mainboard/intel/dg43gt/hda_verb.c +++ b/src/mainboard/intel/dg43gt/hda_verb.c @@ -35,5 +35,4 @@
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 c0483e7..c1cf92b 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 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;