projects
/
coreboot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
The ARRAY_SIZE macro is convenient, yet mostly unused. Switch lots of
[coreboot.git]
/
src
/
mainboard
/
iwill
/
dk8_htx
/
resourcemap.c
diff --git
a/src/mainboard/iwill/dk8_htx/resourcemap.c
b/src/mainboard/iwill/dk8_htx/resourcemap.c
index 56af68e4460422cfb097bfa8ab35ecc345ace033..992510215c8deb0bfb7dfb25c5021abc38c880b3 100644
(file)
--- a/
src/mainboard/iwill/dk8_htx/resourcemap.c
+++ b/
src/mainboard/iwill/dk8_htx/resourcemap.c
@@
-258,7
+258,7
@@
static void setup_mb_resource_map(void)
};
int max;
- max =
sizeof(register_values)/sizeof(register_values[0]
);
+ max =
ARRAY_SIZE(register_values
);
setup_resource_map(register_values, max);
}