Paul Menzel (paulepanter@users.sourceforge.net) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/5936
-gerrit
commit 8eca4cee7890f6d254d62de5e7daa65f0b72ee2e Author: Paul Menzel paulepanter@users.sourceforge.net Date: Thu Jun 5 22:12:06 2014 +0200
google/link, lenovo/x60: i915io.c: Use define `ARRAY_SIZE`
Change-Id: I8ddd46a573b61eba685efcc15456f288645d214d Signed-off-by: Paul Menzel paulepanter@users.sourceforge.net --- src/mainboard/google/link/i915io.c | 2 +- src/mainboard/lenovo/x60/i915io.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mainboard/google/link/i915io.c b/src/mainboard/google/link/i915io.c index f553acc..abceb05 100644 --- a/src/mainboard/google/link/i915io.c +++ b/src/mainboard/google/link/i915io.c @@ -355,4 +355,4 @@ struct iodef iodefs[] = { {I,}, };
-int niodefs = sizeof (iodefs) / sizeof (iodefs[0]); +int niodefs = ARRAY_SIZE(iodefs); diff --git a/src/mainboard/lenovo/x60/i915io.c b/src/mainboard/lenovo/x60/i915io.c index 3552867..b3c47b7 100644 --- a/src/mainboard/lenovo/x60/i915io.c +++ b/src/mainboard/lenovo/x60/i915io.c @@ -2270,4 +2270,4 @@ struct iodef iodefs[] = { {0,}, };
-int niodefs = sizeof(iodefs) / sizeof(iodefs[0]); +int niodefs = ARRAY_SIZE(iodefs);