summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
authorPaul Menzel <paulepanter@users.sourceforge.net>2014-06-05 22:12:06 +0200
committerPatrick Georgi <patrick@georgi-clan.de>2014-06-20 22:29:50 +0200
commit4c960d4ebe2f5ef486cf31fdeb9b92033642d907 (patch)
tree2b4bd2e5373cc09144d223a01632f8c401994382 /src/mainboard
parentd309eb145dbb0e79b0b678dc623949e12c15e02f (diff)
downloadcoreboot-4c960d4ebe2f5ef486cf31fdeb9b92033642d907.tar.xz
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>
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/google/link/i915io.c2
-rw-r--r--src/mainboard/lenovo/x60/i915io.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mainboard/google/link/i915io.c b/src/mainboard/google/link/i915io.c
index f553accbb7..abceb05f1b 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 355286786a..b3c47b7b1e 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);