Skip to content
Snippets Groups Projects
Commit b7326323 authored by Holger Brunck's avatar Holger Brunck Committed by Albert ARIBAUD
Browse files

arm/km: use ARRAY_SIZE macro


Signed-off-by: default avatarHolger Brunck <holger.brunck@keymile.com>
Signed-off-by: default avatarValentin Longchamp <valentin.longchamp@keymile.com>
cc: Gerlando Falauto <gerlando.falauto@keymile.com>
cc: Prafulla Wadaskar <prafulla@marvell.com>
parent af85f085
No related branches found
No related tags found
No related merge requests found
...@@ -410,7 +410,7 @@ const ulong patterns[] = { 0x00000000, ...@@ -410,7 +410,7 @@ const ulong patterns[] = { 0x00000000,
0xFF00FF00, 0xFF00FF00,
0x0F0F0F0F, 0x0F0F0F0F,
0xF0F0F0F0}; 0xF0F0F0F0};
const ulong NBR_OF_PATTERNS = sizeof(patterns)/sizeof(*patterns); const ulong NBR_OF_PATTERNS = ARRAY_SIZE(patterns);
const ulong OFFS_PATTERN = 3; const ulong OFFS_PATTERN = 3;
const ulong REPEAT_PATTERN = 1000; const ulong REPEAT_PATTERN = 1000;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment