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:
parent
d309eb145d
commit
4c960d4ebe
|
@ -355,4 +355,4 @@ struct iodef iodefs[] = {
|
|||
{I,},
|
||||
};
|
||||
|
||||
int niodefs = sizeof (iodefs) / sizeof (iodefs[0]);
|
||||
int niodefs = ARRAY_SIZE(iodefs);
|
||||
|
|
|
@ -2270,4 +2270,4 @@ struct iodef iodefs[] = {
|
|||
{0,},
|
||||
};
|
||||
|
||||
int niodefs = sizeof(iodefs) / sizeof(iodefs[0]);
|
||||
int niodefs = ARRAY_SIZE(iodefs);
|
||||
|
|
Loading…
Reference in New Issue