google/link, lenovo/x60: i915io.c: Use define `ARRAY_SIZE`

Change-Id: I8ddd46a573b61eba685efcc15456f288645d214d
Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-on: http://review.coreboot.org/5936
Tested-by: build bot (Jenkins)
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-by: Aaron Durbin <adurbin@google.com>
This commit is contained in:
Paul Menzel 2014-06-05 22:12:06 +02:00 committed by Patrick Georgi
parent d309eb145d
commit 4c960d4ebe
2 changed files with 2 additions and 2 deletions

View File

@ -355,4 +355,4 @@ struct iodef iodefs[] = {
{I,},
};
int niodefs = sizeof (iodefs) / sizeof (iodefs[0]);
int niodefs = ARRAY_SIZE(iodefs);

View File

@ -2270,4 +2270,4 @@ struct iodef iodefs[] = {
{0,},
};
int niodefs = sizeof(iodefs) / sizeof(iodefs[0]);
int niodefs = ARRAY_SIZE(iodefs);