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:
parent
577573fd5e
commit
4b7910635d
|
@ -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);
|
||||
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue