mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-26 22:52:18 +00:00
arm/km: use ARRAY_SIZE macro
Signed-off-by: Holger Brunck <holger.brunck@keymile.com> Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com> cc: Gerlando Falauto <gerlando.falauto@keymile.com> cc: Prafulla Wadaskar <prafulla@marvell.com>
This commit is contained in:
parent
af85f08588
commit
b732632389
1 changed files with 1 additions and 1 deletions
|
@ -410,7 +410,7 @@ const ulong patterns[] = { 0x00000000,
|
|||
0xFF00FF00,
|
||||
0x0F0F0F0F,
|
||||
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 REPEAT_PATTERN = 1000;
|
||||
|
||||
|
|
Loading…
Reference in a new issue