Nicholas Sudsgaard has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/80422?usp=email )
Change subject: mainboard: Enforce usage of AZALIA_ARRAY_SIZE ......................................................................
mainboard: Enforce usage of AZALIA_ARRAY_SIZE
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 --- 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(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/22/80422/1
diff --git a/src/mainboard/acer/g43t-am3/hda_verb.c b/src/mainboard/acer/g43t-am3/hda_verb.c index 32a9b25..bf15ec2 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_SIZE; diff --git a/src/mainboard/amd/pademelon/hda_verb.c b/src/mainboard/amd/pademelon/hda_verb.c index 95758f0..b1e5dd1 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_SIZE; diff --git a/src/mainboard/asrock/g41c-gs/hda_verb.c b/src/mainboard/asrock/g41c-gs/hda_verb.c index 2c9f634..6d4678e 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_SIZE; diff --git a/src/mainboard/asus/p5qc/hda_verb.c b/src/mainboard/asus/p5qc/hda_verb.c index d2c0410..cbc221a 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_SIZE; diff --git a/src/mainboard/asus/p5ql-em/hda_verb.c b/src/mainboard/asus/p5ql-em/hda_verb.c index d1b1178..2596e0f 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_SIZE; diff --git a/src/mainboard/asus/p5qpl-am/hda_verb.c b/src/mainboard/asus/p5qpl-am/hda_verb.c index 6c8497d..2167df2 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_SIZE; diff --git a/src/mainboard/foxconn/g41s-k/hda_verb.c b/src/mainboard/foxconn/g41s-k/hda_verb.c index 30f3609..6f67816 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_SIZE; diff --git a/src/mainboard/gigabyte/ga-g41m-es2l/hda_verb.c b/src/mainboard/gigabyte/ga-g41m-es2l/hda_verb.c index 75a0864..ac8ecec 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_SIZE; diff --git a/src/mainboard/intel/dg41wv/hda_verb.c b/src/mainboard/intel/dg41wv/hda_verb.c index 95758f0..b1e5dd1 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_SIZE; diff --git a/src/mainboard/intel/dg43gt/hda_verb.c b/src/mainboard/intel/dg43gt/hda_verb.c index d61e6ed..1a82565 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_SIZE; diff --git a/src/mainboard/lenovo/thinkcentre_a58/hda_verb.c b/src/mainboard/lenovo/thinkcentre_a58/hda_verb.c index c0483e7..aba019d 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_SIZE;