summaryrefslogtreecommitdiff
path: root/src/mainboard/samsung
diff options
context:
space:
mode:
authorEdward O'Callaghan <eocallaghan@alterapraxis.com>2014-07-07 19:12:24 +1000
committerEdward O'Callaghan <eocallaghan@alterapraxis.com>2014-07-08 07:55:29 +0200
commit4b7910635de3ae31da83e9da03376d31f91df081 (patch)
tree129b54068315ea168a5d81a83b35ade5995eeda0 /src/mainboard/samsung
parent577573fd5ec7df094da09c92ae454b261173ecbe (diff)
downloadcoreboot-4b7910635de3ae31da83e9da03376d31f91df081.tar.xz
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>
Diffstat (limited to 'src/mainboard/samsung')
-rw-r--r--src/mainboard/samsung/lumpy/hda_verb.h2
-rw-r--r--src/mainboard/samsung/stumpy/hda_verb.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mainboard/samsung/lumpy/hda_verb.h b/src/mainboard/samsung/lumpy/hda_verb.h
index 3871aa1590..dfadf5562a 100644
--- a/src/mainboard/samsung/lumpy/hda_verb.h
+++ b/src/mainboard/samsung/lumpy/hda_verb.h
@@ -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);
diff --git a/src/mainboard/samsung/stumpy/hda_verb.h b/src/mainboard/samsung/stumpy/hda_verb.h
index c9a49c5db9..b263fbe972 100644
--- a/src/mainboard/samsung/stumpy/hda_verb.h
+++ b/src/mainboard/samsung/stumpy/hda_verb.h
@@ -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);