mainboard: Make use of ARRAY_SIZE macro in hda_verb.h

We have the macro, let us be sure to make use of it.

Change-Id: I8dc5ca580c7485e3cce7ebc29189a452de52b1b1
Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-on: http://review.coreboot.org/6193
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
This commit is contained in:
Edward O'Callaghan 2014-07-07 19:12:24 +10:00
parent 577573fd5e
commit 4b7910635d
8 changed files with 8 additions and 8 deletions

View File

@ -261,6 +261,6 @@ static const u32 mainboard_pc_beep_verbs[] = {
};
static const u32 mainboard_pc_beep_verbs_size =
sizeof(mainboard_pc_beep_verbs) / sizeof(mainboard_pc_beep_verbs[0]);
ARRAY_SIZE(mainboard_pc_beep_verbs);

View File

@ -178,4 +178,4 @@ static const u32 mainboard_pc_beep_verbs[] = {
0x0143b013, /* beep volume */
};
static const u32 mainboard_pc_beep_verbs_size =
sizeof(mainboard_pc_beep_verbs) / sizeof(mainboard_pc_beep_verbs[0]);
ARRAY_SIZE(mainboard_pc_beep_verbs);

View File

@ -166,4 +166,4 @@ static const u32 mainboard_pc_beep_verbs[] = {
};
static const u32 mainboard_pc_beep_verbs_size =
sizeof(mainboard_pc_beep_verbs) / sizeof(mainboard_pc_beep_verbs[0]);
ARRAY_SIZE(mainboard_pc_beep_verbs);

View File

@ -136,4 +136,4 @@ static const u32 mainboard_pc_beep_verbs[] = {
0x00b37410, /* unmute mixer nid 0xb beep input and set volume */
};
static const u32 mainboard_pc_beep_verbs_size =
sizeof(mainboard_pc_beep_verbs) / sizeof(mainboard_pc_beep_verbs[0]);
ARRAY_SIZE(mainboard_pc_beep_verbs);

View File

@ -312,6 +312,6 @@ static const u32 mainboard_pc_beep_verbs[] = {
};
static const u32 mainboard_pc_beep_verbs_size =
sizeof(mainboard_pc_beep_verbs) / sizeof(mainboard_pc_beep_verbs[0]);
ARRAY_SIZE(mainboard_pc_beep_verbs);

View File

@ -312,6 +312,6 @@ static const u32 mainboard_pc_beep_verbs[] = {
};
static const u32 mainboard_pc_beep_verbs_size =
sizeof(mainboard_pc_beep_verbs) / sizeof(mainboard_pc_beep_verbs[0]);
ARRAY_SIZE(mainboard_pc_beep_verbs);

View File

@ -78,4 +78,4 @@ static const u32 mainboard_pc_beep_verbs[] = {
0x0023B04B, /* set DAC gain */
};
static const u32 mainboard_pc_beep_verbs_size =
sizeof(mainboard_pc_beep_verbs) / sizeof(mainboard_pc_beep_verbs[0]);
ARRAY_SIZE(mainboard_pc_beep_verbs);

View File

@ -105,4 +105,4 @@ static const u32 mainboard_pc_beep_verbs[] = {
0x0023B04B, /* set DAC gain */
};
static const u32 mainboard_pc_beep_verbs_size =
sizeof(mainboard_pc_beep_verbs) / sizeof(mainboard_pc_beep_verbs[0]);
ARRAY_SIZE(mainboard_pc_beep_verbs);